mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-05 13:16:32 +00:00
MakeMIInst() should handle jump table index operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -151,6 +151,9 @@ static MachineInstr *MakeMIInst(unsigned Opcode, unsigned FrameIndex,
|
|||||||
return addFrameReference(BuildMI(Opcode, 5), FrameIndex)
|
return addFrameReference(BuildMI(Opcode, 5), FrameIndex)
|
||||||
.addGlobalAddress(MI->getOperand(1).getGlobal(),
|
.addGlobalAddress(MI->getOperand(1).getGlobal(),
|
||||||
false, MI->getOperand(1).getOffset());
|
false, MI->getOperand(1).getOffset());
|
||||||
|
else if (MI->getOperand(1).isJumpTableIndex())
|
||||||
|
return addFrameReference(BuildMI(Opcode, 5), FrameIndex)
|
||||||
|
.addJumpTableIndex(MI->getOperand(1).getJumpTableIndex());
|
||||||
assert(0 && "Unknown operand for MakeMI!");
|
assert(0 && "Unknown operand for MakeMI!");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user