diff options
| author | Bill Wendling <isanbard@gmail.com> | 2012-11-27 09:55:56 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2012-11-27 09:55:56 +0000 |
| commit | ee5984df399aa360047e2e4ac9209bd886bc4961 (patch) | |
| tree | 37b61bcdea511e1e137a16c16bb7def649f47f49 /llvm/lib/AsmParser/LLParser.cpp | |
| parent | 69a071d5a676d66761dc9808265795cff17d1b80 (diff) | |
| download | bcm5719-llvm-ee5984df399aa360047e2e4ac9209bd886bc4961.tar.gz bcm5719-llvm-ee5984df399aa360047e2e4ac9209bd886bc4961.zip | |
Remove the dependent libraries feature.
The dependent libraries feature was never used and has bit-rotted. Remove it.
llvm-svn: 168694
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.cpp')
| -rw-r--r-- | llvm/lib/AsmParser/LLParser.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp index 65f42450622..8a9f951908c 100644 --- a/llvm/lib/AsmParser/LLParser.cpp +++ b/llvm/lib/AsmParser/LLParser.cpp @@ -168,7 +168,6 @@ bool LLParser::ParseTopLevelEntities() { case lltok::kw_define: if (ParseDefine()) return true; break; case lltok::kw_module: if (ParseModuleAsm()) return true; break; case lltok::kw_target: if (ParseTargetDefinition()) return true; break; - case lltok::kw_deplibs: if (ParseDepLibs()) return true; break; case lltok::LocalVarID: if (ParseUnnamedType()) return true; break; case lltok::LocalVar: if (ParseNamedType()) return true; break; case lltok::GlobalID: if (ParseUnnamedGlobal()) return true; break; @@ -264,31 +263,6 @@ bool LLParser::ParseTargetDefinition() { } } -/// toplevelentity -/// ::= 'deplibs' '=' '[' ']' -/// ::= 'deplibs' '=' '[' STRINGCONSTANT (',' STRINGCONSTANT)* ']' -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; - - std::string Str; - if (ParseStringConstant(Str)) return true; - M->addLibrary(Str); - - while (EatIfPresent(lltok::comma)) { - if (ParseStringConstant(Str)) return true; - M->addLibrary(Str); - } - - return ParseToken(lltok::rsquare, "expected ']' at end of list"); -} - /// ParseUnnamedType: /// ::= LocalVarID '=' 'type' type bool LLParser::ParseUnnamedType() { |

