aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-20 00:50:32 +0000
committerChris Lattner <sabre@nondot.org>2009-06-20 00:50:32 +0000
commitad48be0ea307e18f765a1adc82f6e22943d4fcae (patch)
tree544a9e767cc07931005e1718ecfbf14212d0692e
parentf38c03af2a142db2777ce839026706969f3aeaa9 (diff)
hook up printMemReference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73811 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
index e46f7a3c74..0267c4e580 100644
--- a/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
+++ b/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
@@ -388,13 +388,11 @@ void X86ATTAsmPrinter::printLeaMemReference(const MCInst *MI, unsigned Op,
void X86ATTAsmPrinter::printMemReference(const MCInst *MI, unsigned Op,
const char *Modifier, bool NotRIPRel){
-#if 0
- assert(isMem(MI, Op) && "Invalid memory reference!");
- MachineOperand Segment = MI->getOperand(Op+4);
+ //assert(isMem(MI, Op) && "Invalid memory reference!");
+ const MCOperand &Segment = MI->getOperand(Op+4);
if (Segment.getReg()) {
printOperand(MI, Op+4, Modifier);
O << ':';
}
printLeaMemReference(MI, Op, Modifier, NotRIPRel);
-#endif
}