summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-04-14 01:11:51 +0000
committerBill Wendling <isanbard@gmail.com>2011-04-14 01:11:51 +0000
commit7e07d6fb69bf52b45e1a0f790135bd4746d70194 (patch)
tree1bcc827ee9abb95d2b51456cf3e9cca225b7e8fb /llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
parent3563aa6520a7adc67d5a79917bef9a9ae1ccb111 (diff)
downloadbcm5719-llvm-7e07d6fb69bf52b45e1a0f790135bd4746d70194.tar.gz
bcm5719-llvm-7e07d6fb69bf52b45e1a0f790135bd4746d70194.zip
Have the X86 back-end emit the alias instead of what's being aliased. In most
cases, it's much nicer and more informative reading the alias. llvm-svn: 129497
Diffstat (limited to 'llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp')
-rw-r--r--llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
index d006eca3449..69a069e438b 100644
--- a/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
+++ b/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
@@ -42,7 +42,8 @@ X86ATTInstPrinter::X86ATTInstPrinter(TargetMachine &TM, const MCAsmInfo &MAI)
}
void X86ATTInstPrinter::printInst(const MCInst *MI, raw_ostream &OS) {
- printInstruction(MI, OS);
+ if (printAliasInstr(MI, OS))
+ printInstruction(MI, OS);
// If verbose assembly is enabled, we can print some informative comments.
if (CommentStream)
OpenPOWER on IntegriCloud