diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-18 08:18:46 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-18 08:18:46 +0000 |
commit | d97321ceb313f06fd9a824cf26b9dc5b80b3eb9d (patch) | |
tree | c02f8e64480eae468206a13f5a7b5d88381b172f | |
parent | dc26a9b84005936b47d8e5901919a789b8ae9139 (diff) | |
download | external_llvm-d97321ceb313f06fd9a824cf26b9dc5b80b3eb9d.zip external_llvm-d97321ceb313f06fd9a824cf26b9dc5b80b3eb9d.tar.gz external_llvm-d97321ceb313f06fd9a824cf26b9dc5b80b3eb9d.tar.bz2 |
Remove the two-argument (inferred cast) form of ConstantExpr::getCast now
that its last uses have been removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32653 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Constants.h | 2 | ||||
-rw-r--r-- | lib/VMCore/Constants.cpp | 7 |
2 files changed, 0 insertions, 9 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 1940e5b..36d8299 100644 --- a/include/llvm/Constants.h +++ b/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/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 3339a18..c270918 100644 --- a/lib/VMCore/Constants.cpp +++ b/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); |