[llvm] e0bb502 - [LLParser] Remove outdated deplibs
Xuanda Yang via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 13 21:47:14 PDT 2021
Author: Xuanda Yang
Date: 2021-06-14T12:46:12+08:00
New Revision: e0bb5020643cf22e3989c641afaa50892766b557
URL: https://github.com/llvm/llvm-project/commit/e0bb5020643cf22e3989c641afaa50892766b557
DIFF: https://github.com/llvm/llvm-project/commit/e0bb5020643cf22e3989c641afaa50892766b557.diff
LOG: [LLParser] Remove outdated deplibs
The comment mentions deplibs should be removed in 4.0. Removing it in this patch.
Reviewed By: compnerd, dexonsmith, lattner
Differential Revision: https://reviews.llvm.org/D102763
Added:
Modified:
llvm/include/llvm/AsmParser/LLParser.h
llvm/lib/AsmParser/LLLexer.cpp
llvm/lib/AsmParser/LLParser.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/AsmParser/LLParser.h b/llvm/include/llvm/AsmParser/LLParser.h
index 3d9ffe6e90da9..108be7b5628ca 100644
--- a/llvm/include/llvm/AsmParser/LLParser.h
+++ b/llvm/include/llvm/AsmParser/LLParser.h
@@ -301,7 +301,6 @@ namespace llvm {
bool parseTargetDefinition();
bool parseModuleAsm();
bool parseSourceFileName();
- bool parseDepLibs(); // FIXME: Remove in 4.0.
bool parseUnnamedType();
bool parseNamedType();
bool parseDeclare();
diff --git a/llvm/lib/AsmParser/LLLexer.cpp b/llvm/lib/AsmParser/LLLexer.cpp
index ae7cab51ac1c9..5f68db84367cb 100644
--- a/llvm/lib/AsmParser/LLLexer.cpp
+++ b/llvm/lib/AsmParser/LLLexer.cpp
@@ -543,7 +543,6 @@ lltok::Kind LLLexer::LexIdentifier() {
KEYWORD(triple);
KEYWORD(source_filename);
KEYWORD(unwind);
- KEYWORD(deplibs); // FIXME: Remove in 4.0.
KEYWORD(datalayout);
KEYWORD(volatile);
KEYWORD(atomic);
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 7a24994579bad..1381ca6b61b42 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -357,10 +357,6 @@ bool LLParser::parseTopLevelEntities() {
if (parseModuleAsm())
return true;
break;
- case lltok::kw_deplibs:
- if (parseDepLibs())
- return true;
- break;
case lltok::LocalVarID:
if (parseUnnamedType())
return true;
@@ -460,29 +456,6 @@ bool LLParser::parseSourceFileName() {
return false;
}
-/// toplevelentity
-/// ::= 'deplibs' '=' '[' ']'
-/// ::= 'deplibs' '=' '[' STRINGCONSTANT (',' STRINGCONSTANT)* ']'
-/// FIXME: Remove in 4.0. Currently parse, but ignore.
-bool LLParser::parseDepLibs() {
- assert(Lex.getKind() == lltok::kw_deplibs);
- Lex.Lex();
- if (parseToken(lltok::equal, "expected '=' after deplibs") ||
- parseToken(lltok::lsquare, "expected '=' after deplibs"))
- return true;
-
- if (EatIfPresent(lltok::rsquare))
- return false;
-
- do {
- std::string Str;
- if (parseStringConstant(Str))
- return true;
- } while (EatIfPresent(lltok::comma));
-
- return parseToken(lltok::rsquare, "expected ']' at end of list");
-}
-
/// parseUnnamedType:
/// ::= LocalVarID '=' 'type' type
bool LLParser::parseUnnamedType() {
More information about the llvm-commits
mailing list