1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

don't call getOffset() on jump tables, this fixes three failing olden benchmarks

with the new asmprinter.

llvm-svn: 80906
This commit is contained in:
Chris Lattner 2009-09-03 07:36:42 +00:00
parent d7cc632fcf
commit 6ea9973a0b

View 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);