projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
975d7e0
)
don't call getOffset() on jump tables, this fixes three failing olden benchmarks
author
Chris Lattner
<sabre@nondot.org>
Thu, 3 Sep 2009 07:36:42 +0000
(07:36 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp
b/lib/Target/X86/AsmPrinter/X86MCInstLower.cpp
index 3636ecbfd7d408d079bd5153c0bc57d214b800c4..e3bbc8d6fe8f5c6b2e689b03c352d8b4b29c0c85 100644
(file)
--- 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);