mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-12-20 03:17:48 +00:00
MC: Modernize MCOperand API naming. NFC.
MCOperand::Create*() methods renamed to MCOperand::create*(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237275 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -108,31 +108,31 @@ public:
|
||||
InstVal = Val;
|
||||
}
|
||||
|
||||
static MCOperand CreateReg(unsigned Reg) {
|
||||
static MCOperand createReg(unsigned Reg) {
|
||||
MCOperand Op;
|
||||
Op.Kind = kRegister;
|
||||
Op.RegVal = Reg;
|
||||
return Op;
|
||||
}
|
||||
static MCOperand CreateImm(int64_t Val) {
|
||||
static MCOperand createImm(int64_t Val) {
|
||||
MCOperand Op;
|
||||
Op.Kind = kImmediate;
|
||||
Op.ImmVal = Val;
|
||||
return Op;
|
||||
}
|
||||
static MCOperand CreateFPImm(double Val) {
|
||||
static MCOperand createFPImm(double Val) {
|
||||
MCOperand Op;
|
||||
Op.Kind = kFPImmediate;
|
||||
Op.FPImmVal = Val;
|
||||
return Op;
|
||||
}
|
||||
static MCOperand CreateExpr(const MCExpr *Val) {
|
||||
static MCOperand createExpr(const MCExpr *Val) {
|
||||
MCOperand Op;
|
||||
Op.Kind = kExpr;
|
||||
Op.ExprVal = Val;
|
||||
return Op;
|
||||
}
|
||||
static MCOperand CreateInst(const MCInst *Val) {
|
||||
static MCOperand createInst(const MCInst *Val) {
|
||||
MCOperand Op;
|
||||
Op.Kind = kInst;
|
||||
Op.InstVal = Val;
|
||||
|
||||
@@ -30,31 +30,31 @@ public:
|
||||
|
||||
/// \brief Add a new register operand.
|
||||
MCInstBuilder &addReg(unsigned Reg) {
|
||||
Inst.addOperand(MCOperand::CreateReg(Reg));
|
||||
Inst.addOperand(MCOperand::createReg(Reg));
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// \brief Add a new integer immediate operand.
|
||||
MCInstBuilder &addImm(int64_t Val) {
|
||||
Inst.addOperand(MCOperand::CreateImm(Val));
|
||||
Inst.addOperand(MCOperand::createImm(Val));
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// \brief Add a new floating point immediate operand.
|
||||
MCInstBuilder &addFPImm(double Val) {
|
||||
Inst.addOperand(MCOperand::CreateFPImm(Val));
|
||||
Inst.addOperand(MCOperand::createFPImm(Val));
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// \brief Add a new MCExpr operand.
|
||||
MCInstBuilder &addExpr(const MCExpr *Val) {
|
||||
Inst.addOperand(MCOperand::CreateExpr(Val));
|
||||
Inst.addOperand(MCOperand::createExpr(Val));
|
||||
return *this;
|
||||
}
|
||||
|
||||
/// \brief Add a new MCInst operand.
|
||||
MCInstBuilder &addInst(const MCInst *Val) {
|
||||
Inst.addOperand(MCOperand::CreateInst(Val));
|
||||
Inst.addOperand(MCOperand::createInst(Val));
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user