aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-03 07:36:42 +0000
committerChris Lattner <sabre@nondot.org>2009-09-03 07:36:42 +0000
commit47ad2d6e9702f572de4df1c0b2b66ef40fcda48c (patch)
treefd32c1bad751304afa8a767f444bcf3952f14e16
parent975d7e039260a9888050dfb6da865348d67fbb27 (diff)
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
-rw-r--r--lib/Target/X86/AsmPrinter/X86MCInstLower.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp b/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp
index 3636ecbfd7..e3bbc8d6fe 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);