projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4360a4
)
Teach the x86 jit how to handle jump tables not directly used by a jump
author
Nate Begeman
<natebegeman@mac.com>
Wed, 3 May 2006 04:52:47 +0000
(
04:52
+0000)
committer
Nate Begeman
<natebegeman@mac.com>
Wed, 3 May 2006 04:52:47 +0000
(
04:52
+0000)
instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28080
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86CodeEmitter.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86CodeEmitter.cpp
b/lib/Target/X86/X86CodeEmitter.cpp
index ca6c78df5ec9d04fd3b943be9cb19a4b4e074fba..9e2c998e3f159a75cdd511fe0f5d5c4bfedefd29 100644
(file)
--- a/
lib/Target/X86/X86CodeEmitter.cpp
+++ b/
lib/Target/X86/X86CodeEmitter.cpp
@@
-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!");
}