[Debug Info] remove DITrivialType and use null to represent unspecified param.
[oota-llvm.git] / include / llvm / IR / ConstantFolder.h
index 86668f7e7dfa97c2f2231c154990dc97607826e1..e271a14821172b93ef1ac830a14eb6d2ff0768c2 100644 (file)
@@ -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);