[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp

Reid Spencer reid at x10sys.com
Mon Dec 18 00:19:05 PST 2006



Changes in directory llvm/lib/VMCore:

Constants.cpp updated: 1.188 -> 1.189
---
Log message:

Remove the two-argument (inferred cast) form of ConstantExpr::getCast now
that its last uses have been removed.


---
Diffs of the changes:  (+0 -7)

 Constants.cpp |    7 -------
 1 files changed, 7 deletions(-)


Index: llvm/lib/VMCore/Constants.cpp
diff -u llvm/lib/VMCore/Constants.cpp:1.188 llvm/lib/VMCore/Constants.cpp:1.189
--- llvm/lib/VMCore/Constants.cpp:1.188	Fri Dec 15 15:47:01 2006
+++ llvm/lib/VMCore/Constants.cpp	Mon Dec 18 02:18:46 2006
@@ -1480,13 +1480,6 @@
   return 0;
 } 
 
-Constant *ConstantExpr::getCast(Constant *C, const Type *Ty) {
-  // Note: we can't inline this because it requires the Instructions.h header
-  return getCast(CastInst::getCastOpcode(
-        C, C->getType()->isSigned(), Ty, Ty->isSigned()), C, Ty);
-}
-
-
 Constant *ConstantExpr::getZExtOrBitCast(Constant *C, const Type *Ty) {
   if (C->getType()->getPrimitiveSizeInBits() == Ty->getPrimitiveSizeInBits())
     return getCast(Instruction::BitCast, C, Ty);






More information about the llvm-commits mailing list