diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-02-03 18:07:49 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-02-03 18:07:49 +0000 |
commit | 45206ecf708bf03b04db07c2476b9f862127a8b1 (patch) | |
tree | 3e84567fa2c7e2f4128aa39a70f177b017e66387 /lib/CodeGen/CodeGenFunction.h | |
parent | 07da367ca230b88d4b056dd79fefa4f10ab88b7a (diff) |
Targets that don't have stack use global address space for parameters.
Specify external linkage for such globals so that llvm optimizer do
not assume there values initialized as zero.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 1605e2a31d..31b2c4e4e4 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -627,9 +627,11 @@ public: /// GenerateStaticBlockVarDecl - return the the static /// declaration of local variable. - llvm::GlobalValue *GenerateStaticBlockVarDecl(const VarDecl &D, - bool NoInit, - const char *Separator); + llvm::GlobalValue * GenerateStaticBlockVarDecl(const VarDecl &D, + bool NoInit, + const char *Separator, + llvm::GlobalValue + ::LinkageTypes Linkage); // GenerateStaticCXXBlockVarDecl - return the static declaration of // a local variable. Performs initialization of the variable if necessary. |