mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-26 18:20:39 +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:
@@ -572,8 +572,6 @@ public:
|
|||||||
const Type *Ty ///< The integer type to cast to
|
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
|
/// @brief Return true if this is a convert constant expression
|
||||||
bool isCast() const;
|
bool isCast() const;
|
||||||
|
|
||||||
|
|||||||
@@ -1480,13 +1480,6 @@ Constant *ConstantExpr::getCast(unsigned oc, Constant *C, const Type *Ty) {
|
|||||||
return 0;
|
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) {
|
Constant *ConstantExpr::getZExtOrBitCast(Constant *C, const Type *Ty) {
|
||||||
if (C->getType()->getPrimitiveSizeInBits() == Ty->getPrimitiveSizeInBits())
|
if (C->getType()->getPrimitiveSizeInBits() == Ty->getPrimitiveSizeInBits())
|
||||||
return getCast(Instruction::BitCast, C, Ty);
|
return getCast(Instruction::BitCast, C, Ty);
|
||||||
|
|||||||
Reference in New Issue
Block a user