summaryrefslogtreecommitdiff
path: root/lib/TableGen
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-01-07 05:09:33 +0000
committerCraig Topper <craig.topper@gmail.com>2013-01-07 05:09:33 +0000
commit6a59f5ade8e13e323affe09d5a22df7d146ae259 (patch)
treecfc4c08c8e1e8243db07ca02e2d3395638867b31 /lib/TableGen
parentdf3bf55d49883a076c8599c3b57f0707b8dc0335 (diff)
downloadllvm-6a59f5ade8e13e323affe09d5a22df7d146ae259.tar.gz
llvm-6a59f5ade8e13e323affe09d5a22df7d146ae259.tar.bz2
llvm-6a59f5ade8e13e323affe09d5a22df7d146ae259.tar.xz
Revert r171140. We don't actually need to support #NAME. Because NAME by itself is interpreted just fine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171695 91177308-0d34-0410-b5e6-96231b3b80d8
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 e5875ad795..17f0abc974 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);
}