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:
db3ea67
)
jump tables handle pic
author
Chris Lattner
<sabre@nondot.org>
Fri, 6 Oct 2006 22:32:29 +0000
(22:32 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 6 Oct 2006 22:32:29 +0000
(22:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30776
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index e7175cfdba61be7519da911c5f31d9252e27ca2e..6d0f782220b7404c7745702fb6eb48aad0485955 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@
-846,11
+846,6
@@
void SelectionDAGLowering::visitSwitchCase(SelectionDAGISel::CaseBlock &CB) {
}
void SelectionDAGLowering::visitJumpTable(SelectionDAGISel::JumpTable &JT) {
- // FIXME: Need to emit different code for PIC vs. Non-PIC, specifically,
- // we need to add the address of the jump table to the value loaded, since
- // the entries in the jump table will be differences rather than absolute
- // addresses.
-
// Emit the code for the jump table
MVT::ValueType PTy = TLI.getPointerTy();
assert((PTy == MVT::i32 || PTy == MVT::i64) &&