[llvm-commits] [llvm] r171695 - /llvm/trunk/lib/TableGen/TGParser.cpp
Craig Topper
craig.topper at gmail.com
Sun Jan 6 21:09:33 PST 2013
Author: ctopper
Date: Sun Jan 6 23:09:33 2013
New Revision: 171695
URL: http://llvm.org/viewvc/llvm-project?rev=171695&view=rev
Log:
Revert r171140. We don't actually need to support #NAME. Because NAME by itself is interpreted just fine.
Modified:
llvm/trunk/lib/TableGen/TGParser.cpp
Modified: llvm/trunk/lib/TableGen/TGParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/TGParser.cpp?rev=171695&r1=171694&r2=171695&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/TGParser.cpp (original)
+++ llvm/trunk/lib/TableGen/TGParser.cpp Sun Jan 6 23:09:33 2013
@@ -2406,11 +2406,7 @@
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);
}
More information about the llvm-commits
mailing list