aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-25 19:24:29 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-25 19:24:29 +0000
commit0096acf421c4609ce7f43e8b05f8c5ca866d4611 (patch)
treeb138a6cda73d80318e14c45fc3902baac44fbdb1 /lib/CodeGen/CodeGenFunction.h
parent01e4b5c3bf9f529c0c873162119d56a4f9341167 (diff)
Pull COdeGenFunction::CreateStaticBlockVarDecl (just for creating the
global variable) out of GenerateStaticBlockVarDecl. - No intended functionality change. - Prep for some mild cleanups and PR3662. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65466 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index f13e79ae1d..02276b98b0 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -746,17 +746,25 @@ public:
/// LoadComplexFromAddr - Load a complex number from the specified address.
ComplexPairTy LoadComplexFromAddr(llvm::Value *SrcAddr, bool SrcIsVolatile);
+ /// CreateStaticBlockVarDecl - Create a zero-initialized LLVM global
+ /// for a static block var decl.
+ llvm::GlobalVariable * CreateStaticBlockVarDecl(const VarDecl &D,
+ const char *Separator,
+ llvm::GlobalValue::LinkageTypes
+ Linkage);
+
/// GenerateStaticBlockVarDecl - Return the the static declaration of local
/// variable.
- 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.
- llvm::GlobalValue *GenerateStaticCXXBlockVarDecl(const VarDecl &D);
+ llvm::GlobalVariable * GenerateStaticBlockVarDecl(const VarDecl &D,
+ bool NoInit,
+ const char *Separator,
+ llvm::GlobalValue
+ ::LinkageTypes Linkage);
+
+ /// GenerateStaticCXXBlockVarDecl - Create the initializer for a C++
+ /// runtime initialized static block var decl.
+ void GenerateStaticCXXBlockVarDeclInit(const VarDecl &D,
+ llvm::GlobalVariable *GV);
//===--------------------------------------------------------------------===//
// Internal Helpers