mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
Don't convert {} into []!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32106 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cb90249ecb
commit
0b7e507247
@ -2279,7 +2279,7 @@ yyreduce:
|
|||||||
case 107:
|
case 107:
|
||||||
#line 329 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y"
|
#line 329 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y"
|
||||||
{ // Empty structure type?
|
{ // Empty structure type?
|
||||||
(yyval.Type).newTy = new std::string("{ }");
|
(yyval.Type).newTy = new std::string("{}");
|
||||||
(yyval.Type).oldTy = StructTy;
|
(yyval.Type).oldTy = StructTy;
|
||||||
;}
|
;}
|
||||||
break;
|
break;
|
||||||
@ -2386,7 +2386,7 @@ yyreduce:
|
|||||||
{
|
{
|
||||||
(yyval.Const).type = (yyvsp[-2].Type);
|
(yyval.Const).type = (yyvsp[-2].Type);
|
||||||
(yyval.Const).cnst = new std::string(*(yyvsp[-2].Type).newTy);
|
(yyval.Const).cnst = new std::string(*(yyvsp[-2].Type).newTy);
|
||||||
*(yyval.Const).cnst += " [ ]";
|
*(yyval.Const).cnst += " {}";
|
||||||
;}
|
;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -2279,7 +2279,7 @@ yyreduce:
|
|||||||
case 107:
|
case 107:
|
||||||
#line 329 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y"
|
#line 329 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y"
|
||||||
{ // Empty structure type?
|
{ // Empty structure type?
|
||||||
(yyval.Type).newTy = new std::string("{ }");
|
(yyval.Type).newTy = new std::string("{}");
|
||||||
(yyval.Type).oldTy = StructTy;
|
(yyval.Type).oldTy = StructTy;
|
||||||
;}
|
;}
|
||||||
break;
|
break;
|
||||||
@ -2386,7 +2386,7 @@ yyreduce:
|
|||||||
{
|
{
|
||||||
(yyval.Const).type = (yyvsp[-2].Type);
|
(yyval.Const).type = (yyvsp[-2].Type);
|
||||||
(yyval.Const).cnst = new std::string(*(yyvsp[-2].Type).newTy);
|
(yyval.Const).cnst = new std::string(*(yyvsp[-2].Type).newTy);
|
||||||
*(yyval.Const).cnst += " [ ]";
|
*(yyval.Const).cnst += " {}";
|
||||||
;}
|
;}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -327,7 +327,7 @@ UpRTypes : '\\' EUINT64VAL { // Type UpReference
|
|||||||
$$.oldTy = StructTy;
|
$$.oldTy = StructTy;
|
||||||
}
|
}
|
||||||
| '{' '}' { // Empty structure type?
|
| '{' '}' { // Empty structure type?
|
||||||
$$.newTy = new std::string("{ }");
|
$$.newTy = new std::string("{}");
|
||||||
$$.oldTy = StructTy;
|
$$.oldTy = StructTy;
|
||||||
}
|
}
|
||||||
| UpRTypes '*' { // Pointer type?
|
| UpRTypes '*' { // Pointer type?
|
||||||
@ -402,7 +402,7 @@ ConstVal: Types '[' ConstVector ']' { // Nonempty unsized arr
|
|||||||
| Types '{' '}' {
|
| Types '{' '}' {
|
||||||
$$.type = $1;
|
$$.type = $1;
|
||||||
$$.cnst = new std::string(*$1.newTy);
|
$$.cnst = new std::string(*$1.newTy);
|
||||||
*$$.cnst += " [ ]";
|
*$$.cnst += " {}";
|
||||||
}
|
}
|
||||||
| Types NULL_TOK {
|
| Types NULL_TOK {
|
||||||
$$.type = $1;
|
$$.type = $1;
|
||||||
|
@ -327,7 +327,7 @@ UpRTypes : '\\' EUINT64VAL { // Type UpReference
|
|||||||
$$.oldTy = StructTy;
|
$$.oldTy = StructTy;
|
||||||
}
|
}
|
||||||
| '{' '}' { // Empty structure type?
|
| '{' '}' { // Empty structure type?
|
||||||
$$.newTy = new std::string("{ }");
|
$$.newTy = new std::string("{}");
|
||||||
$$.oldTy = StructTy;
|
$$.oldTy = StructTy;
|
||||||
}
|
}
|
||||||
| UpRTypes '*' { // Pointer type?
|
| UpRTypes '*' { // Pointer type?
|
||||||
@ -402,7 +402,7 @@ ConstVal: Types '[' ConstVector ']' { // Nonempty unsized arr
|
|||||||
| Types '{' '}' {
|
| Types '{' '}' {
|
||||||
$$.type = $1;
|
$$.type = $1;
|
||||||
$$.cnst = new std::string(*$1.newTy);
|
$$.cnst = new std::string(*$1.newTy);
|
||||||
*$$.cnst += " [ ]";
|
*$$.cnst += " {}";
|
||||||
}
|
}
|
||||||
| Types NULL_TOK {
|
| Types NULL_TOK {
|
||||||
$$.type = $1;
|
$$.type = $1;
|
||||||
|
Loading…
Reference in New Issue
Block a user