diff options
author | Anders Carlsson <andersca@mac.com> | 2009-02-12 17:55:02 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-02-12 17:55:02 +0000 |
commit | 6a60fa2428fa521cc9bbfc84d176e91389449460 (patch) | |
tree | 55c9ef093c709059bfffcd8cd59a874737d702bb /clang/lib/CodeGen/CodeGenModule.h | |
parent | 13de253bd6a62c78f0f8af2a2b3b035c82939700 (diff) | |
download | bcm5719-llvm-6a60fa2428fa521cc9bbfc84d176e91389449460.tar.gz bcm5719-llvm-6a60fa2428fa521cc9bbfc84d176e91389449460.zip |
Add a very basic implemenation of global blocks. This needs to be cleaned up.
llvm-svn: 64387
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index bedefcaa3f9..0c3964fd5f9 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -40,6 +40,7 @@ namespace clang { class ObjCImplementationDecl; class ObjCCategoryImplDecl; class ObjCProtocolDecl; + class BlockExpr; class Decl; class Expr; class Stmt; @@ -121,6 +122,10 @@ class CodeGenModule { /// Obj-C class pointer. llvm::Constant *CFConstantStringClassRef; + /// NSConcreteGlobalBlock - Cached reference to the clas pointer for + /// global blocks. + llvm::Constant *NSConcreteGlobalBlock; + std::vector<llvm::Function *> BuiltinFunctions; public: CodeGenModule(ASTContext &C, const LangOptions &Features, llvm::Module &M, @@ -196,6 +201,8 @@ public: llvm::Constant *GetAddrOfConstantCString(const std::string &str, const char *GlobalName=0); + llvm::Constant *GetAddrOfGlobalBlock(const BlockExpr *BE); + /// getBuiltinLibFunction - Given a builtin id for a function like /// "__builtin_fabsf", return a Function* for "fabsf". llvm::Function *getBuiltinLibFunction(unsigned BuiltinID); |