Jimptables working again on alpha.
[oota-llvm.git] / lib / CodeGen / AsmPrinter.cpp
index 33b6b979d0d1b31e00de1202d463da641b1edc0f..9f5447fa5fd29a0b4488816b5cee2b6ab87f0a6b 100644 (file)
@@ -204,7 +204,7 @@ void AsmPrinter::EmitJumpTableInfo(MachineJumpTableInfo *MJTI,
     TargetLowering *LoweringInfo = TM.getTargetLowering();
     if (LoweringInfo && LoweringInfo->usesGlobalOffsetTable()) {
       SwitchToDataSection(TAI->getJumpTableDataSection(), 0);
-      if (TD->getPointerSize() == 8)
+      if (TD->getPointerSize() == 8 && !JTEntryDirective)
         JTEntryDirective = TAI->getData64bitsDirective();
     } else {      
       // In PIC mode, we need to emit the jump table to the same section as the