aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-29 17:25:41 +0000
committerChris Lattner <sabre@nondot.org>2002-10-29 17:25:41 +0000
commit8f7802727f796b60fed79bb76f908ff289ad382c (patch)
treebcfa1281b5e9c612ace73e83daab1f888eb6e5fc /lib/Target/SparcV9
parentad3136fee4d350b6a094a217ee4f9b0ff0f8d093 (diff)
downloadexternal_llvm-8f7802727f796b60fed79bb76f908ff289ad382c.zip
external_llvm-8f7802727f796b60fed79bb76f908ff289ad382c.tar.gz
external_llvm-8f7802727f796b60fed79bb76f908ff289ad382c.tar.bz2
Use higher level method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9')
-rw-r--r--lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp
index 76ff182..86dde07 100644
--- a/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp
+++ b/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp
@@ -471,7 +471,7 @@ FixConstantOperandsForInstr(Instruction* vmInstr,
MachineOpCode opCode = minstr->getOpCode();
const MachineInstrInfo& instrInfo = target.getInstrInfo();
- const MachineInstrDescriptor& instrDesc = instrInfo.getDescriptor(opCode);
+ int resultPos = instrInfo.getResultPos(opCode);
int immedPos = instrInfo.getImmedConstantPos(opCode);
Function *F = vmInstr->getParent()->getParent();
@@ -482,7 +482,7 @@ FixConstantOperandsForInstr(Instruction* vmInstr,
// Skip the result position, preallocated machine registers, or operands
// that cannot be constants (CC regs or PC-relative displacements)
- if (instrDesc.resultPos == (int) op ||
+ if (resultPos == (int)op ||
mop.getType() == MachineOperand::MO_MachineRegister ||
mop.getType() == MachineOperand::MO_CCRegister ||
mop.getType() == MachineOperand::MO_PCRelativeDisp)