[llvm-commits] CVS: llvm/tools/llvm-upgrade/UpgradeParser.y
Reid Spencer
reid at x10sys.com
Fri Jan 5 16:12:20 PST 2007
Changes in directory llvm/tools/llvm-upgrade:
UpgradeParser.y updated: 1.33 -> 1.34
---
Log message:
For PR1080: http://llvm.org/PR1080 :
Emit the correct syntax for icmp and fcmp constant expressions. The
predicate goes outside the parentheses not inside. This was a change made
in the assembler without the corresponding change made in llvm-upgrade.
---
Diffs of the changes: (+2 -2)
UpgradeParser.y | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/tools/llvm-upgrade/UpgradeParser.y
diff -u llvm/tools/llvm-upgrade/UpgradeParser.y:1.33 llvm/tools/llvm-upgrade/UpgradeParser.y:1.34
--- llvm/tools/llvm-upgrade/UpgradeParser.y:1.33 Fri Jan 5 11:18:58 2007
+++ llvm/tools/llvm-upgrade/UpgradeParser.y Fri Jan 5 18:12:05 2007
@@ -1160,12 +1160,12 @@
$$ = $1;
}
| ICMP IPredicates '(' ConstVal ',' ConstVal ')' {
- *$1 += "(" + *$2 + "," + *$4.cnst + "," + *$6.cnst + ")";
+ *$1 += " " + *$2 + " (" + *$4.cnst + "," + *$6.cnst + ")";
delete $2; $4.destroy(); $6.destroy();
$$ = $1;
}
| FCMP FPredicates '(' ConstVal ',' ConstVal ')' {
- *$1 += "(" + *$2 + "," + *$4.cnst + "," + *$6.cnst + ")";
+ *$1 += " " + *$2 + " (" + *$4.cnst + "," + *$6.cnst + ")";
delete $2; $4.destroy(); $6.destroy();
$$ = $1;
}
More information about the llvm-commits
mailing list