mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-24 21:14:56 +00:00
Teach the x86 jit how to handle jump tables not directly used by a jump
instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28080 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f4360a4789
commit
67977ad19c
@ -517,6 +517,9 @@ void Emitter::emitInstruction(const MachineInstr &MI) {
|
||||
else if (MI.getOperand(4).isGlobalAddress())
|
||||
emitGlobalAddressForPtr(MI.getOperand(4).getGlobal(),
|
||||
MI.getOperand(4).getOffset());
|
||||
else if (MI.getOperand(4).isJumpTableIndex())
|
||||
emitConstant(MCE.getJumpTableEntryAddress(MI.getOperand(4)
|
||||
.getJumpTableIndex()), 4);
|
||||
else
|
||||
assert(0 && "Unknown operand!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user