mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
Use higher level method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ad3136fee4
commit
8f7802727f
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user