add missing method, PR6284
authorChris Lattner <sabre@nondot.org>
Wed, 17 Feb 2010 18:39:56 +0000 (18:39 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 17 Feb 2010 18:39:56 +0000 (18:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96489 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/TargetFolder.h

index 384c49396a865524e7f8aece051cb7916c812030..d34f35fe0d2be8cf37765a6b4297199b414de251 100644 (file)
@@ -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);
   }