diff options
author | Mike Stump <mrs@apple.com> | 2009-03-04 18:17:45 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-03-04 18:17:45 +0000 |
commit | 95435674f9faf01bcbdba7f3af03118149eb1551 (patch) | |
tree | 04f56fb60e7071dbda9bea668e16e332bdd10b28 /clang/lib/CodeGen/CGBlocks.cpp | |
parent | 4f4de6c27febe97cc650cdcce65c8ac80dc069d9 (diff) | |
download | bcm5719-llvm-95435674f9faf01bcbdba7f3af03118149eb1551.tar.gz bcm5719-llvm-95435674f9faf01bcbdba7f3af03118149eb1551.zip |
Move more of blocks codegen out of CodeGenModule and into the
BlockModule. No functionality change. This should help people that
don't want to know anything about blocks not be confused by the
overloaded use of the term block or nor want to see all the blocks
goop.
llvm-svn: 66042
Diffstat (limited to 'clang/lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 2f1fba02c72..8aabada259c 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -74,7 +74,7 @@ llvm::Constant *CodeGenFunction::BuildDescriptorBlockDecl(uint64_t Size) { return C; } -llvm::Constant *CodeGenModule::getNSConcreteGlobalBlock() { +llvm::Constant *BlockModule::getNSConcreteGlobalBlock() { if (NSConcreteGlobalBlock) return NSConcreteGlobalBlock; @@ -92,7 +92,7 @@ llvm::Constant *CodeGenModule::getNSConcreteGlobalBlock() { return NSConcreteGlobalBlock; } -llvm::Constant *CodeGenModule::getNSConcreteStackBlock() { +llvm::Constant *BlockModule::getNSConcreteStackBlock() { if (NSConcreteStackBlock) return NSConcreteStackBlock; @@ -297,7 +297,7 @@ llvm::Value *CodeGenFunction::BuildBlockLiteralTmp(const BlockExpr *BE) { } -const llvm::Type *CodeGenModule::getBlockDescriptorType() { +const llvm::Type *BlockModule::getBlockDescriptorType() { if (BlockDescriptorType) return BlockDescriptorType; @@ -318,8 +318,7 @@ const llvm::Type *CodeGenModule::getBlockDescriptorType() { return BlockDescriptorType; } -const llvm::Type * -CodeGenModule::getGenericBlockLiteralType() { +const llvm::Type *BlockModule::getGenericBlockLiteralType() { if (GenericBlockLiteralType) return GenericBlockLiteralType; @@ -352,8 +351,7 @@ CodeGenModule::getGenericBlockLiteralType() { return GenericBlockLiteralType; } -const llvm::Type * -CodeGenModule::getGenericExtendedBlockLiteralType() { +const llvm::Type *BlockModule::getGenericExtendedBlockLiteralType() { if (GenericExtendedBlockLiteralType) return GenericExtendedBlockLiteralType; |