diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Constants.h | 2 | ||||
| -rw-r--r-- | llvm/lib/VMCore/Constants.cpp | 7 |
2 files changed, 0 insertions, 9 deletions
diff --git a/llvm/include/llvm/Constants.h b/llvm/include/llvm/Constants.h index 1940e5b831e..36d8299f48f 100644 --- a/llvm/include/llvm/Constants.h +++ b/llvm/include/llvm/Constants.h @@ -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; diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp index 3339a182140..c2709182878 100644 --- a/llvm/lib/VMCore/Constants.cpp +++ b/llvm/lib/VMCore/Constants.cpp @@ -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); |

