diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-29 18:54:39 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-29 18:54:39 +0000 |
commit | 3c4972def972f8ca44dcd0561779a12aaa6fec97 (patch) | |
tree | e46ecd68bbec4a407d573155c6513e88b02a1857 /lib/CodeGen/CGBlocks.cpp | |
parent | 8a8a629844d26c24dc0147d55a32a937b14b9381 (diff) |
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 1bac84d269..da72b18787 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/lib/CodeGen/CGBlocks.cpp @@ -140,7 +140,7 @@ llvm::Value *CodeGenFunction::BuildBlockLiteralTmp(const BlockExpr *BE) { // __isa C = CGM.getNSConcreteStackBlock(); - C = VMContext.getConstantExprBitCast(C, PtrToInt8Ty); + C = llvm::ConstantExpr::getBitCast(C, PtrToInt8Ty); Elts[0] = C; // __flags @@ -169,7 +169,7 @@ llvm::Value *CodeGenFunction::BuildBlockLiteralTmp(const BlockExpr *BE) { llvm::GlobalValue::InternalLinkage, C, Name); QualType BPT = BE->getType(); - C = VMContext.getConstantExprBitCast(C, ConvertType(BPT)); + C = llvm::ConstantExpr::getBitCast(C, ConvertType(BPT)); return C; } @@ -784,7 +784,7 @@ GenerateCopyHelperFunction(bool BlockHasCopyDispose, const llvm::StructType *T, CGF.FinishFunction(); - return VMContext.getConstantExprBitCast(Fn, PtrToInt8Ty); + return llvm::ConstantExpr::getBitCast(Fn, PtrToInt8Ty); } llvm::Constant *BlockFunction:: @@ -853,7 +853,7 @@ GenerateDestroyHelperFunction(bool BlockHasCopyDispose, CGF.FinishFunction(); - return VMContext.getConstantExprBitCast(Fn, PtrToInt8Ty); + return llvm::ConstantExpr::getBitCast(Fn, PtrToInt8Ty); } llvm::Constant *BlockFunction::BuildCopyHelper(const llvm::StructType *T, @@ -932,7 +932,7 @@ GeneratebyrefCopyHelperFunction(const llvm::Type *T, int flag) { CGF.FinishFunction(); - return VMContext.getConstantExprBitCast(Fn, PtrToInt8Ty); + return llvm::ConstantExpr::getBitCast(Fn, PtrToInt8Ty); } llvm::Constant * @@ -983,7 +983,7 @@ BlockFunction::GeneratebyrefDestroyHelperFunction(const llvm::Type *T, BuildBlockRelease(V, flag); CGF.FinishFunction(); - return VMContext.getConstantExprBitCast(Fn, PtrToInt8Ty); + return llvm::ConstantExpr::getBitCast(Fn, PtrToInt8Ty); } llvm::Constant *BlockFunction::BuildbyrefCopyHelper(const llvm::Type *T, |