1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[MC] Delete unused MCOperand::{create,is,get}FPImm

This commit is contained in:
Fangrui Song 2021-03-17 00:30:38 -07:00
parent 291c355e10
commit dfd32b8a1c

View File

@ -61,7 +61,6 @@ public:
bool isImm() const { return Kind == kImmediate; }
bool isSFPImm() const { return Kind == kSFPImmediate; }
bool isDFPImm() const { return Kind == kDFPImmediate; }
bool isFPImm() const { return Kind == kDFPImmediate; }
bool isExpr() const { return Kind == kExpr; }
bool isInst() const { return Kind == kInst; }
@ -101,10 +100,6 @@ public:
assert(isDFPImm() && "This is not an FP immediate");
return FPImmVal;
}
double getFPImm() const {
assert(isDFPImm() && "This is not an FP immediate");
return bit_cast<double>(FPImmVal);
}
void setDFPImm(uint64_t Val) {
assert(isDFPImm() && "This is not an FP immediate");
@ -162,12 +157,6 @@ public:
Op.FPImmVal = Val;
return Op;
}
static MCOperand createFPImm(double Val) {
MCOperand Op;
Op.Kind = kDFPImmediate;
Op.FPImmVal = bit_cast<uint64_t>(Val);
return Op;
}
static MCOperand createExpr(const MCExpr *Val) {
MCOperand Op;