diff options
author | Jim Grosbach <grosbach@apple.com> | 2015-05-13 18:37:00 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2015-05-13 18:37:00 +0000 |
commit | e9119e41efb5230324d7f997af0db94235034ffc (patch) | |
tree | 5ea30b77ddae810121d9784168d750371b788ce4 /llvm/lib/Target/XCore/XCoreMCInstLower.cpp | |
parent | 4c2814e5d6030a65a3d88fcce8bdf237c9593d72 (diff) | |
download | bcm5719-llvm-e9119e41efb5230324d7f997af0db94235034ffc.tar.gz bcm5719-llvm-e9119e41efb5230324d7f997af0db94235034ffc.zip |
MC: Modernize MCOperand API naming. NFC.
MCOperand::Create*() methods renamed to MCOperand::create*().
llvm-svn: 237275
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreMCInstLower.cpp')
-rw-r--r-- | llvm/lib/Target/XCore/XCoreMCInstLower.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/XCore/XCoreMCInstLower.cpp b/llvm/lib/Target/XCore/XCoreMCInstLower.cpp index dfdadcf3fe5..cffba5fee03 100644 --- a/llvm/lib/Target/XCore/XCoreMCInstLower.cpp +++ b/llvm/lib/Target/XCore/XCoreMCInstLower.cpp @@ -68,14 +68,14 @@ MCOperand XCoreMCInstLower::LowerSymbolOperand(const MachineOperand &MO, const MCSymbolRefExpr *MCSym = MCSymbolRefExpr::Create(Symbol, Kind, *Ctx); if (!Offset) - return MCOperand::CreateExpr(MCSym); + return MCOperand::createExpr(MCSym); // Assume offset is never negative. assert(Offset > 0); const MCConstantExpr *OffsetExpr = MCConstantExpr::Create(Offset, *Ctx); const MCBinaryExpr *Add = MCBinaryExpr::CreateAdd(MCSym, OffsetExpr, *Ctx); - return MCOperand::CreateExpr(Add); + return MCOperand::createExpr(Add); } MCOperand XCoreMCInstLower::LowerOperand(const MachineOperand &MO, @@ -87,9 +87,9 @@ MCOperand XCoreMCInstLower::LowerOperand(const MachineOperand &MO, case MachineOperand::MO_Register: // Ignore all implicit register operands. if (MO.isImplicit()) break; - return MCOperand::CreateReg(MO.getReg()); + return MCOperand::createReg(MO.getReg()); case MachineOperand::MO_Immediate: - return MCOperand::CreateImm(MO.getImm() + offset); + return MCOperand::createImm(MO.getImm() + offset); case MachineOperand::MO_MachineBasicBlock: case MachineOperand::MO_GlobalAddress: case MachineOperand::MO_ExternalSymbol: |