Get rid of the only use of TargetInstrInfo::getResultPos(), a deprecated method.
authorBrian Gaeke <gaeke@uiuc.edu>
Wed, 4 Aug 2004 08:05:27 +0000 (08:05 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Wed, 4 Aug 2004 08:05:27 +0000 (08:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15483 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9BurgISel.cpp

index 0f15ad9fbd60316e8431f527483cfdf5a2d0a8a6..a32eb340af368857073dd6325d257c903ab0fcdc 100644 (file)
@@ -1423,7 +1423,7 @@ FixConstantOperandsForInstr(Instruction* vmInstr, MachineInstr* minstr,
   
   MachineOpCode opCode = minstr->getOpcode();
   const TargetInstrInfo& instrInfo = *target.getInstrInfo();
-  int resultPos = instrInfo.getResultPos(opCode);
+  int resultPos = instrInfo.get(opCode).resultPos;
   int immedPos = instrInfo.getImmedConstantPos(opCode);
 
   Function *F = vmInstr->getParent()->getParent();