diff options
author | Chris Lattner <sabre@nondot.org> | 2011-06-18 22:49:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-06-18 22:49:11 +0000 |
commit | 7650d95a1a616ea300f37126a8dfc93dc19a662a (patch) | |
tree | 76a7ab3f1101cb49c37458f1e32344916fb4d56c /lib/CodeGen/CGBlocks.cpp | |
parent | 19bd77c64937d6818c61f2aa9e6a9d51c65d0356 (diff) |
update for api change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 8ad82a614e..8fb6e3ed71 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -677,10 +677,8 @@ const llvm::Type *CodeGenModule::getBlockDescriptorType() { // const char *signature; // the block signature // const char *layout; // reserved // }; - BlockDescriptorType = llvm::StructType::get(UnsignedLongTy->getContext(), - UnsignedLongTy, - UnsignedLongTy, - NULL); + BlockDescriptorType = + llvm::StructType::get(UnsignedLongTy, UnsignedLongTy, NULL); getModule().addTypeName("struct.__block_descriptor", BlockDescriptorType); @@ -703,8 +701,7 @@ const llvm::Type *CodeGenModule::getGenericBlockLiteralType() { // void (*__invoke)(void *); // struct __block_descriptor *__descriptor; // }; - GenericBlockLiteralType = llvm::StructType::get(getLLVMContext(), - VoidPtrTy, + GenericBlockLiteralType = llvm::StructType::get(VoidPtrTy, IntTy, IntTy, VoidPtrTy, |