summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-02-03 18:07:49 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-02-03 18:07:49 +0000
commit45206ecf708bf03b04db07c2476b9f862127a8b1 (patch)
tree3e84567fa2c7e2f4128aa39a70f177b017e66387 /lib/CodeGen/CodeGenFunction.h
parent07da367ca230b88d4b056dd79fefa4f10ab88b7a (diff)
downloadclang-45206ecf708bf03b04db07c2476b9f862127a8b1.tar.gz
clang-45206ecf708bf03b04db07c2476b9f862127a8b1.tar.bz2
clang-45206ecf708bf03b04db07c2476b9f862127a8b1.tar.xz
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.h8
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.