diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-10-29 17:25:41 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-10-29 17:25:41 +0000 | 
| commit | 50ef1010c01cf215ed331d5d2df2a0acd119456d (patch) | |
| tree | 0d0cd52ba37fb59538338c790f0c2579e7dbd7d4 /llvm/lib | |
| parent | cc4df765762c4483eb14b5c113964fa15d1deca7 (diff) | |
| download | bcm5719-llvm-50ef1010c01cf215ed331d5d2df2a0acd119456d.tar.gz bcm5719-llvm-50ef1010c01cf215ed331d5d2df2a0acd119456d.zip  | |
Use higher level method
llvm-svn: 4386
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp index 76ff182e185..86dde076dd2 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp +++ b/llvm/lib/CodeGen/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)  | 

