Get rid of the only use of TargetInstrInfo::getResultPos(), a deprecated method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2004-08-04 08:05:27 +00:00
parent 9e4c681354
commit 1c313c959a

View 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();