aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/IR/ConstantFolder.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/IR/ConstantFolder.h')
-rw-r--r--include/llvm/IR/ConstantFolder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/IR/ConstantFolder.h b/include/llvm/IR/ConstantFolder.h
index 86668f7..e271a14 100644
--- a/include/llvm/IR/ConstantFolder.h
+++ b/include/llvm/IR/ConstantFolder.h
@@ -159,6 +159,12 @@ public:
Constant *CreatePointerCast(Constant *C, Type *DestTy) const {
return ConstantExpr::getPointerCast(C, DestTy);
}
+
+ Constant *CreatePointerBitCastOrAddrSpaceCast(Constant *C,
+ Type *DestTy) const {
+ return ConstantExpr::getPointerBitCastOrAddrSpaceCast(C, DestTy);
+ }
+
Constant *CreateIntCast(Constant *C, Type *DestTy,
bool isSigned) const {
return ConstantExpr::getIntegerCast(C, DestTy, isSigned);