mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 19:02:35 +00:00
cleanups
llvm-svn: 115739
This commit is contained in:
parent
d4612e13ab
commit
048fc51b83
@ -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