summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit1f8d96868776f59b1b9588f0a0f6675e2ed3396e (patch)
tree354d811ecbe910a64c5e1c8b132f1431d123dec9 /llvm/lib
parent4682015e615baeee3d4841e5926fc347d1a32d2e (diff)
downloadbcm5719-llvm-1f8d96868776f59b1b9588f0a0f6675e2ed3396e.tar.gz
bcm5719-llvm-1f8d96868776f59b1b9588f0a0f6675e2ed3396e.zip
hook up printMemReference.
llvm-svn: 73811
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp b/llvm/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
index e46f7a3c74f..0267c4e5807 100644
--- a/llvm/lib/Target/X86/AsmPrinter/X86ATTInstPrinter.cpp
+++ b/llvm/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
}
OpenPOWER on IntegriCloud