Revert r171140. We don't actually need to support #NAME. Because NAME by itself is...
authorCraig Topper <craig.topper@gmail.com>
Mon, 7 Jan 2013 05:09:33 +0000 (05:09 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 7 Jan 2013 05:09:33 +0000 (05:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171695 91177308-0d34-0410-b5e6-96231b3b80d8

lib/TableGen/TGParser.cpp

index e5875ad7957ed8ec15a76bd341a2d3c5c8bc31b5..17f0abc974771c9bdd45de85ad4d7fd5db1f0664 100644 (file)
@@ -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);
   }