summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-04-18 21:28:11 +0000
committerEric Christopher <echristo@apple.com>2011-04-18 21:28:11 +0000
commit2e3fbaab3999df382b8a4b460989e5fa7db14395 (patch)
tree56cc65fc9226450164457b9626ae36bea77a0636 /llvm/lib/Target/X86/InstPrinter/X86ATTInstPrinter.cpp
parented904c82b127e73bb59e1f7678c2279a786be04b (diff)
downloadbcm5719-llvm-2e3fbaab3999df382b8a4b460989e5fa7db14395.tar.gz
bcm5719-llvm-2e3fbaab3999df382b8a4b460989e5fa7db14395.zip
Invert the meaning of printAliasInstr's return value. It now returns
true on success and false on failure. Update callers. llvm-svn: 129722
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 69a069e438b..dd6e3533849 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) {
- if (printAliasInstr(MI, OS))
+ // Try to print any aliases first.
+ if (!printAliasInstr(MI, OS))
printInstruction(MI, OS);
// If verbose assembly is enabled, we can print some informative comments.
OpenPOWER on IntegriCloud