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
This commit is contained in:
Reid Spencer 2006-12-18 08:18:46 +00:00
parent dc26a9b840
commit d97321ceb3
2 changed files with 0 additions and 9 deletions

View 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;

View 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);