summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitf781bd8947d43d912444af69eeb50232dc60c2a3 (patch)
tree4d9efa879555534b742be9e216b28a27e18f491c /llvm/lib/CodeGen
parent72cdcacb0267dc15bf85c5c3066231b76e555925 (diff)
downloadbcm5719-llvm-f781bd8947d43d912444af69eeb50232dc60c2a3.tar.gz
bcm5719-llvm-f781bd8947d43d912444af69eeb50232dc60c2a3.zip
Need a comma after imp-use.
llvm-svn: 84749
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index b9d3ba78794..1f85e922590 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/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 << ',';
OpenPOWER on IntegriCloud