mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a8bbe707dc
commit
578bcf0e48
@ -1028,8 +1028,13 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType) {
|
||||
break;
|
||||
}
|
||||
case tgtok::CodeFragment:
|
||||
R = new CodeInit(Lex.getCurStrVal()); Lex.Lex(); break;
|
||||
case tgtok::question: R = new UnsetInit(); Lex.Lex(); break;
|
||||
R = new CodeInit(Lex.getCurStrVal());
|
||||
Lex.Lex();
|
||||
break;
|
||||
case tgtok::question:
|
||||
R = new UnsetInit();
|
||||
Lex.Lex();
|
||||
break;
|
||||
case tgtok::Id: {
|
||||
SMLoc NameLoc = Lex.getLoc();
|
||||
std::string Name = Lex.getCurStrVal();
|
||||
@ -1209,13 +1214,11 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType) {
|
||||
}
|
||||
|
||||
Init *Operator = 0;
|
||||
if (Lex.getCode() == tgtok::Id) {
|
||||
if (Lex.getCode() == tgtok::Id)
|
||||
Operator = ParseIDValue(CurRec);
|
||||
if (Operator == 0) return 0;
|
||||
} else {
|
||||
else
|
||||
Operator = ParseOperation(CurRec);
|
||||
if (Operator == 0) return 0;
|
||||
}
|
||||
if (Operator == 0) return 0;
|
||||
|
||||
// If the operator name is present, parse it.
|
||||
std::string OperatorName;
|
||||
@ -1241,7 +1244,6 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType) {
|
||||
Lex.Lex(); // eat the ')'
|
||||
|
||||
return new DagInit(Operator, OperatorName, DagArgs);
|
||||
break;
|
||||
}
|
||||
|
||||
case tgtok::XCar:
|
||||
@ -1258,7 +1260,6 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType) {
|
||||
case tgtok::XForEach:
|
||||
case tgtok::XSubst: { // Value ::= !ternop '(' Value ',' Value ',' Value ')'
|
||||
return ParseOperation(CurRec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user