summaryrefslogtreecommitdiff
path: root/include/llvm/Support/TargetFolder.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-17 18:39:56 +0000
committerChris Lattner <sabre@nondot.org>2010-02-17 18:39:56 +0000
commit46d1ddd13c1529fd669c7c66fa8bea54f26188ba (patch)
tree27d8e36255b9d6f17e6084717c2e2d0403c8e3ca /include/llvm/Support/TargetFolder.h
parent3bc3d3c5acef6bc70f5b5e00d6894a2baa0aa2f7 (diff)
downloadllvm-46d1ddd13c1529fd669c7c66fa8bea54f26188ba.tar.gz
llvm-46d1ddd13c1529fd669c7c66fa8bea54f26188ba.tar.bz2
llvm-46d1ddd13c1529fd669c7c66fa8bea54f26188ba.tar.xz
add missing method, PR6284
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/TargetFolder.h')
-rw-r--r--include/llvm/Support/TargetFolder.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/TargetFolder.h b/include/llvm/Support/TargetFolder.h
index 384c49396a..d34f35fe0d 100644
--- a/include/llvm/Support/TargetFolder.h
+++ b/include/llvm/Support/TargetFolder.h
@@ -185,7 +185,9 @@ public:
return C; // avoid calling Fold
return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned));
}
-
+ Constant *CreatePointerCast(Constant *C, const Type *DestTy) const {
+ return ConstantExpr::getPointerCast(C, DestTy);
+ }
Constant *CreateBitCast(Constant *C, const Type *DestTy) const {
return CreateCast(Instruction::BitCast, C, DestTy);
}