From: Chris Lattner Date: Thu, 3 Sep 2009 07:36:42 +0000 (+0000) Subject: don't call getOffset() on jump tables, this fixes three failing olden benchmarks X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=47ad2d6e9702f572de4df1c0b2b66ef40fcda48c;p=oota-llvm.git don't call getOffset() on jump tables, this fixes three failing olden benchmarks with the new asmprinter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80906 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp b/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp index 3636ecbfd7d..e3bbc8d6fe8 100644 --- a/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp +++ b/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp @@ -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);