diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-30 20:49:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-30 20:49:49 +0000 |
commit | 9a1ceaedc282f0cae31f2723f4d6c00c7b88fe90 (patch) | |
tree | 87d9f35ded3a067f2d7aa4d17bfe0e362fb0f17d /lib/Target/Sparc/SparcInstrInfo.cpp | |
parent | a9d059693b0bfdaa27bad71c2b0769beaf6ee7dd (diff) |
Use MachineOperand::getImm instead of MachineOperand::getImmedValue. Likewise setImmedValue -> setImm
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcInstrInfo.cpp')
-rw-r--r-- | lib/Target/Sparc/SparcInstrInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.cpp b/lib/Target/Sparc/SparcInstrInfo.cpp index 765d648f56..2672389372 100644 --- a/lib/Target/Sparc/SparcInstrInfo.cpp +++ b/lib/Target/Sparc/SparcInstrInfo.cpp @@ -24,7 +24,7 @@ SparcInstrInfo::SparcInstrInfo(SparcSubtarget &ST) } static bool isZeroImm(const MachineOperand &op) { - return op.isImmediate() && op.getImmedValue() == 0; + return op.isImmediate() && op.getImm() == 0; } /// Return true if the instruction is a register to register move and @@ -71,7 +71,7 @@ unsigned SparcInstrInfo::isLoadFromStackSlot(MachineInstr *MI, MI->getOpcode() == SP::LDFri || MI->getOpcode() == SP::LDDFri) { if (MI->getOperand(1).isFrameIndex() && MI->getOperand(2).isImmediate() && - MI->getOperand(2).getImmedValue() == 0) { + MI->getOperand(2).getImm() == 0) { FrameIndex = MI->getOperand(1).getFrameIndex(); return MI->getOperand(0).getReg(); } @@ -90,7 +90,7 @@ unsigned SparcInstrInfo::isStoreToStackSlot(MachineInstr *MI, MI->getOpcode() == SP::STFri || MI->getOpcode() == SP::STDFri) { if (MI->getOperand(0).isFrameIndex() && MI->getOperand(1).isImmediate() && - MI->getOperand(1).getImmedValue() == 0) { + MI->getOperand(1).getImm() == 0) { FrameIndex = MI->getOperand(0).getFrameIndex(); return MI->getOperand(2).getReg(); } |