mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Update tablegen parser to allow defm names to start with #NAME.
llvm-svn: 171140
This commit is contained in:
parent
10e18bc2f3
commit
56ee68554d
@ -2406,7 +2406,11 @@ bool TGParser::ParseDefm(MultiClass *CurMultiClass) {
|
||||
|
||||
Init *DefmPrefix = 0;
|
||||
|
||||
if (Lex.Lex() == tgtok::Id) { // eat the defm.
|
||||
Lex.Lex(); // eat the defm.
|
||||
|
||||
// Note that tgtok::paste is here to allow starting with #NAME.
|
||||
if (Lex.getCode() == tgtok::Id ||
|
||||
Lex.getCode() == tgtok::paste) {
|
||||
DefmPrefix = ParseObjectName(CurMultiClass);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user