mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
jump tables handle pic
llvm-svn: 30776
This commit is contained in:
parent
ad60994822
commit
b5b96302f2
@ -846,11 +846,6 @@ void SelectionDAGLowering::visitSwitchCase(SelectionDAGISel::CaseBlock &CB) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SelectionDAGLowering::visitJumpTable(SelectionDAGISel::JumpTable &JT) {
|
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
|
// Emit the code for the jump table
|
||||||
MVT::ValueType PTy = TLI.getPointerTy();
|
MVT::ValueType PTy = TLI.getPointerTy();
|
||||||
assert((PTy == MVT::i32 || PTy == MVT::i64) &&
|
assert((PTy == MVT::i32 || PTy == MVT::i64) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user