[llvm-commits] CVS: llvm/tools/llvm-upgrade/UpgradeParser.cpp UpgradeParser.cpp.cvs UpgradeParser.y UpgradeParser.y.cvs
Reid Spencer
reid at x10sys.com
Fri Dec 1 14:42:16 PST 2006
Changes in directory llvm/tools/llvm-upgrade:
UpgradeParser.cpp updated: 1.8 -> 1.9
UpgradeParser.cpp.cvs updated: 1.8 -> 1.9
UpgradeParser.y updated: 1.8 -> 1.9
UpgradeParser.y.cvs updated: 1.8 -> 1.9
---
Log message:
Don't convert {} into []!
---
Diffs of the changes: (+8 -8)
UpgradeParser.cpp | 4 ++--
UpgradeParser.cpp.cvs | 4 ++--
UpgradeParser.y | 4 ++--
UpgradeParser.y.cvs | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
Index: llvm/tools/llvm-upgrade/UpgradeParser.cpp
diff -u llvm/tools/llvm-upgrade/UpgradeParser.cpp:1.8 llvm/tools/llvm-upgrade/UpgradeParser.cpp:1.9
--- llvm/tools/llvm-upgrade/UpgradeParser.cpp:1.8 Fri Dec 1 16:34:43 2006
+++ llvm/tools/llvm-upgrade/UpgradeParser.cpp Fri Dec 1 16:42:01 2006
@@ -2279,7 +2279,7 @@
case 107:
#line 329 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y"
{ // Empty structure type?
- (yyval.Type).newTy = new std::string("{ }");
+ (yyval.Type).newTy = new std::string("{}");
(yyval.Type).oldTy = StructTy;
;}
break;
@@ -2386,7 +2386,7 @@
{
(yyval.Const).type = (yyvsp[-2].Type);
(yyval.Const).cnst = new std::string(*(yyvsp[-2].Type).newTy);
- *(yyval.Const).cnst += " [ ]";
+ *(yyval.Const).cnst += " {}";
;}
break;
Index: llvm/tools/llvm-upgrade/UpgradeParser.cpp.cvs
diff -u llvm/tools/llvm-upgrade/UpgradeParser.cpp.cvs:1.8 llvm/tools/llvm-upgrade/UpgradeParser.cpp.cvs:1.9
--- llvm/tools/llvm-upgrade/UpgradeParser.cpp.cvs:1.8 Fri Dec 1 16:34:43 2006
+++ llvm/tools/llvm-upgrade/UpgradeParser.cpp.cvs Fri Dec 1 16:42:01 2006
@@ -2279,7 +2279,7 @@
case 107:
#line 329 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y"
{ // Empty structure type?
- (yyval.Type).newTy = new std::string("{ }");
+ (yyval.Type).newTy = new std::string("{}");
(yyval.Type).oldTy = StructTy;
;}
break;
@@ -2386,7 +2386,7 @@
{
(yyval.Const).type = (yyvsp[-2].Type);
(yyval.Const).cnst = new std::string(*(yyvsp[-2].Type).newTy);
- *(yyval.Const).cnst += " [ ]";
+ *(yyval.Const).cnst += " {}";
;}
break;
Index: llvm/tools/llvm-upgrade/UpgradeParser.y
diff -u llvm/tools/llvm-upgrade/UpgradeParser.y:1.8 llvm/tools/llvm-upgrade/UpgradeParser.y:1.9
--- llvm/tools/llvm-upgrade/UpgradeParser.y:1.8 Fri Dec 1 16:34:43 2006
+++ llvm/tools/llvm-upgrade/UpgradeParser.y Fri Dec 1 16:42:01 2006
@@ -327,7 +327,7 @@
$$.oldTy = StructTy;
}
| '{' '}' { // Empty structure type?
- $$.newTy = new std::string("{ }");
+ $$.newTy = new std::string("{}");
$$.oldTy = StructTy;
}
| UpRTypes '*' { // Pointer type?
@@ -402,7 +402,7 @@
| Types '{' '}' {
$$.type = $1;
$$.cnst = new std::string(*$1.newTy);
- *$$.cnst += " [ ]";
+ *$$.cnst += " {}";
}
| Types NULL_TOK {
$$.type = $1;
Index: llvm/tools/llvm-upgrade/UpgradeParser.y.cvs
diff -u llvm/tools/llvm-upgrade/UpgradeParser.y.cvs:1.8 llvm/tools/llvm-upgrade/UpgradeParser.y.cvs:1.9
--- llvm/tools/llvm-upgrade/UpgradeParser.y.cvs:1.8 Fri Dec 1 16:34:43 2006
+++ llvm/tools/llvm-upgrade/UpgradeParser.y.cvs Fri Dec 1 16:42:01 2006
@@ -327,7 +327,7 @@
$$.oldTy = StructTy;
}
| '{' '}' { // Empty structure type?
- $$.newTy = new std::string("{ }");
+ $$.newTy = new std::string("{}");
$$.oldTy = StructTy;
}
| UpRTypes '*' { // Pointer type?
@@ -402,7 +402,7 @@
| Types '{' '}' {
$$.type = $1;
$$.cnst = new std::string(*$1.newTy);
- *$$.cnst += " [ ]";
+ *$$.cnst += " {}";
}
| Types NULL_TOK {
$$.type = $1;
More information about the llvm-commits
mailing list