1
0
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:
Craig Topper 2012-12-27 06:32:52 +00:00
parent 10e18bc2f3
commit 56ee68554d

View File

@ -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);
}