diff options
author | Fangrui Song <maskray@google.com> | 2020-04-25 15:40:14 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-04-25 16:27:40 -0700 |
commit | 59ec55fa19f202ae8b9b40b18df25f15e0ccba9e (patch) | |
tree | 03b705ae8babff70f5d81cba9567562af4f9d18a /llvm/lib/TableGen/TGParser.cpp | |
parent | 2cb48d620ff3e56f4a4179186055a802c34a4bfd (diff) | |
download | llvm-59ec55fa19f202ae8b9b40b18df25f15e0ccba9e.zip llvm-59ec55fa19f202ae8b9b40b18df25f15e0ccba9e.tar.gz llvm-59ec55fa19f202ae8b9b40b18df25f15e0ccba9e.tar.bz2 |
[TableGen] Drop deprecated leading # when parsing a SimpleValue
Diffstat (limited to 'llvm/lib/TableGen/TGParser.cpp')
-rw-r--r-- | llvm/lib/TableGen/TGParser.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp index 16a7b97..08f7647 100644 --- a/llvm/lib/TableGen/TGParser.cpp +++ b/llvm/lib/TableGen/TGParser.cpp @@ -1827,11 +1827,6 @@ Init *TGParser::ParseSimpleValue(Record *CurRec, RecTy *ItemType, Init *R = nullptr; switch (Lex.getCode()) { default: TokError("Unknown token when parsing a value"); break; - case tgtok::paste: - // This is a leading paste operation. This is deprecated but - // still exists in some .td files. Ignore it. - Lex.Lex(); // Skip '#'. - return ParseSimpleValue(CurRec, ItemType, Mode); case tgtok::IntVal: R = IntInit::get(Lex.getCurIntVal()); Lex.Lex(); break; case tgtok::BinaryIntVal: { auto BinaryVal = Lex.getCurBinaryIntVal(); |