aboutsummaryrefslogtreecommitdiffstats
path: root/lib/TableGen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/TableGen')
-rw-r--r--lib/TableGen/TGParser.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/TableGen/TGParser.cpp b/lib/TableGen/TGParser.cpp
index e5875ad..17f0abc 100644
--- a/lib/TableGen/TGParser.cpp
+++ b/lib/TableGen/TGParser.cpp
@@ -2406,11 +2406,7 @@ bool TGParser::ParseDefm(MultiClass *CurMultiClass) {
Init *DefmPrefix = 0;
- 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) {
+ if (Lex.Lex() == tgtok::Id) { // eat the defm.
DefmPrefix = ParseObjectName(CurMultiClass);
}