mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 06:38:44 +00:00
jump tables handle pic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30776 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
db3ea6754b
commit
e0cfc8b2f2
@ -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) &&
|
||||
|
Loading…
Reference in New Issue
Block a user