Mercurial > hg > Members > tobaru > cbc > CbC_llvm
diff include/llvm/MC/MCInstBuilder.h @ 95:afa8332a0e37
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 95c75e76d11b |
children |
line wrap: on
line diff
--- a/include/llvm/MC/MCInstBuilder.h Wed Feb 18 14:56:07 2015 +0900 +++ b/include/llvm/MC/MCInstBuilder.h Tue Oct 13 17:48:58 2015 +0900 @@ -30,31 +30,37 @@ /// \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; + } + + /// \brief Add an operand. + MCInstBuilder &addOperand(const MCOperand &Op) { + Inst.addOperand(Op); return *this; }