[llvm-commits] [llvm] r96489 - /llvm/trunk/include/llvm/Support/TargetFolder.h

Chris Lattner sabre at nondot.org
Wed Feb 17 10:39:57 PST 2010


Author: lattner
Date: Wed Feb 17 12:39:56 2010
New Revision: 96489

URL: http://llvm.org/viewvc/llvm-project?rev=96489&view=rev
Log:
add missing method, PR6284

Modified:
    llvm/trunk/include/llvm/Support/TargetFolder.h

Modified: llvm/trunk/include/llvm/Support/TargetFolder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/TargetFolder.h?rev=96489&r1=96488&r2=96489&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/TargetFolder.h (original)
+++ llvm/trunk/include/llvm/Support/TargetFolder.h Wed Feb 17 12:39:56 2010
@@ -185,7 +185,9 @@
       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);
   }





More information about the llvm-commits mailing list