mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-26 20:57:15 +00:00
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
This commit is contained in:
parent
975d7e0392
commit
47ad2d6e97
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user