jump tables handle pic
authorChris Lattner <sabre@nondot.org>
Fri, 6 Oct 2006 22:32:29 +0000 (22:32 +0000)
committerChris 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

index e7175cfdba61be7519da911c5f31d9252e27ca2e..6d0f782220b7404c7745702fb6eb48aad0485955 100644 (file)
@@ -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) &&