Remove the two-argument (inferred cast) form of ConstantExpr::getCast now
authorReid Spencer <rspencer@reidspencer.com>
Mon, 18 Dec 2006 08:18:46 +0000 (08:18 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 18 Dec 2006 08:18:46 +0000 (08:18 +0000)
that its last uses have been removed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32653 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constants.h
lib/VMCore/Constants.cpp

index 1940e5b831e73bf89e92b6aa31167fa383f6857f..36d8299f48fcd67778934e00ead5647fd2f966a3 100644 (file)
@@ -572,8 +572,6 @@ public:
     const Type *Ty ///< The integer type to cast to
   );
 
-  static Constant *getCast(Constant *C, const Type *Ty);
-
   /// @brief Return true if this is a convert constant expression
   bool isCast() const;
 
index 3339a182140a6d5a7657b4288bba3f8aaba3f7d1..c27091828789c26f875cb4ba5509a14f5f8671c4 100644 (file)
@@ -1480,13 +1480,6 @@ Constant *ConstantExpr::getCast(unsigned oc, Constant *C, const Type *Ty) {
   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);