From: Chris Lattner Date: Fri, 6 Oct 2006 22:32:29 +0000 (+0000) Subject: jump tables handle pic X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e0cfc8b2f24394c7b5d9275235678269aa4425fd;p=oota-llvm.git jump tables handle pic git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30776 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index e7175cfdba6..6d0f782220b 100644 --- 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) &&