summaryrefslogtreecommitdiffstats
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
commitdf048a962bcd5eb0c38fd95e716f4c8409c89173 (patch)
treed8e77641e38db077e865b89a53f356802f13b388
parentb5c117441997c42e85a7204c05bdc226a3ccaef1 (diff)
downloadbcm5719-llvm-df048a962bcd5eb0c38fd95e716f4c8409c89173.tar.gz
bcm5719-llvm-df048a962bcd5eb0c38fd95e716f4c8409c89173.zip
add missing method, PR6284
llvm-svn: 96489
-rw-r--r--llvm/include/llvm/Support/TargetFolder.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/TargetFolder.h b/llvm/include/llvm/Support/TargetFolder.h
index 384c49396a8..d34f35fe0d2 100644
--- a/llvm/include/llvm/Support/TargetFolder.h
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud