don't call getOffset() on jump tables, this fixes three failing olden benchmarks
authorChris Lattner <sabre@nondot.org>
Thu, 3 Sep 2009 07:36:42 +0000 (07:36 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 3 Sep 2009 07:36:42 +0000 (07:36 +0000)
with the new asmprinter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80906 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/AsmPrinter/X86MCInstLower.cpp

index 3636ecbfd7d408d079bd5153c0bc57d214b800c4..e3bbc8d6fe8f5c6b2e689b03c352d8b4b29c0c85 100644 (file)
@@ -211,7 +211,7 @@ MCOperand X86ATTAsmPrinter::LowerSymbolOperand(const MachineOperand &MO,
   }
   }
   
-  if (MO.getOffset())
+  if (!MO.isJTI() && MO.getOffset())
     Expr = MCBinaryExpr::CreateAdd(Expr, MCConstantExpr::Create(MO.getOffset(),
                                                                 OutContext),
                                    OutContext);