mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-06 04:09:04 +00:00
Remove the two-argument (inferred cast) form of ConstantExpr::getCast now
that its last uses have been removed. llvm-svn: 32653
This commit is contained in:
parent
f31673d965
commit
6769fa4ba2
@ -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