Reduce indentation.

llvm-svn: 320433
This commit is contained in:
Rui Ueyama 2017-12-11 23:09:03 +00:00
parent f950b24a7a
commit 9d8ce23c9c
1 changed files with 2 additions and 2 deletions

View File

@ -298,8 +298,6 @@ void LinkerDriver::link(ArrayRef<const char *> ArgsArr) {
// Make sure we have resolved all symbols.
if (!Config->Relocatable && !Config->AllowUndefined) {
Symtab->reportRemainingUndefines();
if (errorCount())
return;
} else {
// When we allow undefined symbols we cannot include those defined in
// -u/--undefined since these undefined symbols have only names and no
@ -311,6 +309,8 @@ void LinkerDriver::link(ArrayRef<const char *> ArgsArr) {
error("function forced with --undefined not found: " + Sym->getName());
}
}
if (errorCount())
return;
if (!Config->Entry.empty() && !Symtab->find(Config->Entry)->isDefined())
error("entry point not found: " + Config->Entry);