this patch prints out alias instruction for Intel sytax in diasm code.
thanks.
Jun
diff --git a/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
b/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
index e7e7b15..b9f78a5 100644
--- a/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
+++ b/lib/Target/X86/InstPrinter/X86IntelInstPrinter.cpp
@@ -39,7 +39,8 @@ void X86IntelInstPrinter::printInst(const MCInst *MI,
raw_ostream &OS,
if (TSFlags & X86II::LOCK)
OS << "\tlock\n";
- printInstruction(MI, OS);
+ if (!printAliasInstr(MI, OS))
+ printInstruction(MI, OS);
// Next always print the annotation.
printAnnotation(OS, Annot);
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20130917/5dab3f16/attachment.html>