mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[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
This commit is contained in:
parent
a2306da6e0
commit
a66f237758
@ -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();
|
||||
|
@ -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);
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user