[llvm] 59ec55f - [TableGen] Drop deprecated leading # when parsing a SimpleValue
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 25 16:29:20 PDT 2020
Author: Fangrui Song
Date: 2020-04-25T16:27:40-07:00
New Revision: 59ec55fa19f202ae8b9b40b18df25f15e0ccba9e
URL: https://github.com/llvm/llvm-project/commit/59ec55fa19f202ae8b9b40b18df25f15e0ccba9e
DIFF: https://github.com/llvm/llvm-project/commit/59ec55fa19f202ae8b9b40b18df25f15e0ccba9e.diff
LOG: [TableGen] Drop deprecated leading # when parsing a SimpleValue
Added:
Modified:
llvm/lib/TableGen/TGParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp
index 16a7b973be26..08f7647d6e0d 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();
More information about the llvm-commits
mailing list