mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-11 13:29:36 +00:00
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:
parent
dc26a9b840
commit
d97321ceb3
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user