aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-10-21 07:56:02 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-10-21 07:56:02 +0000
commit8c56cfc79c02c68bef1c8bc37f8ee7a47c5e2e32 (patch)
tree15c28ad37a9ab96977fbb7d13daaf8952989f58d
parent745edbe1bd3546db5109e59ea48f8a2a9ba569d8 (diff)
downloadexternal_llvm-8c56cfc79c02c68bef1c8bc37f8ee7a47c5e2e32.zip
external_llvm-8c56cfc79c02c68bef1c8bc37f8ee7a47c5e2e32.tar.gz
external_llvm-8c56cfc79c02c68bef1c8bc37f8ee7a47c5e2e32.tar.bz2
Need a comma after imp-use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84749 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/MachineInstr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index b9d3ba7..1f85e92 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -220,8 +220,10 @@ void MachineOperand::print(raw_ostream &OS, const TargetMachine *TM) const {
OS << "imp-";
OS << "def";
NeedComma = true;
- } else if (isImplicit())
+ } else if (isImplicit()) {
OS << "imp-use";
+ NeedComma = true;
+ }
if (isKill() || isDead() || isUndef()) {
if (NeedComma) OS << ',';