mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
tblgen: Reuse function that is 2 lines above.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171937 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
36febfd70e
commit
9d4a661076
@ -456,18 +456,9 @@ MultiClass *TGParser::ParseMultiClassID() {
|
||||
}
|
||||
|
||||
Record *TGParser::ParseDefmID() {
|
||||
if (Lex.getCode() != tgtok::Id) {
|
||||
TokError("expected multiclass name");
|
||||
MultiClass *MC = ParseMultiClassID();
|
||||
if (!MC)
|
||||
return 0;
|
||||
}
|
||||
|
||||
MultiClass *MC = MultiClasses[Lex.getCurStrVal()];
|
||||
if (MC == 0) {
|
||||
TokError("Couldn't find multiclass '" + Lex.getCurStrVal() + "'");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Lex.Lex();
|
||||
return &MC->Rec;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user