forked from OSchip/llvm-project
[ELF] - Removed unused code. NFC.
This branch was unused I believe, as Tok can never be empty. llvm-svn: 286802
This commit is contained in:
parent
92ca6f4b7d
commit
da841c161d
|
@ -1728,12 +1728,7 @@ std::vector<StringRef> ScriptParser::readOutputSectionPhdrs() {
|
|||
std::vector<StringRef> Phdrs;
|
||||
while (!Error && peek().startswith(":")) {
|
||||
StringRef Tok = next();
|
||||
Tok = (Tok.size() == 1) ? next() : Tok.substr(1);
|
||||
if (Tok.empty()) {
|
||||
setError("section header name is empty");
|
||||
break;
|
||||
}
|
||||
Phdrs.push_back(Tok);
|
||||
Phdrs.push_back((Tok.size() == 1) ? next() : Tok.substr(1));
|
||||
}
|
||||
return Phdrs;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue