forked from OSchip/llvm-project
[ELF] - Removed excessive check. NFC.
Thanks to Rui Ueyama who noticed that. llvm-svn: 277062
This commit is contained in:
parent
01f6997aa1
commit
f586ff7ec9
|
@ -747,7 +747,7 @@ void ScriptParser::readOutputSectionDescription(StringRef OutSec) {
|
|||
expect("{");
|
||||
|
||||
while (!Error && !skip("}")) {
|
||||
if ((!peek().empty() && peek().startswith("*")) || peek() == "KEEP") {
|
||||
if (peek().startswith("*") || peek() == "KEEP") {
|
||||
Cmd->Commands.push_back(readInputSectionDescription());
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue