[lld] r320433 - Reduce indentation.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 11 15:09:03 PST 2017
Author: ruiu
Date: Mon Dec 11 15:09:03 2017
New Revision: 320433
URL: http://llvm.org/viewvc/llvm-project?rev=320433&view=rev
Log:
Reduce indentation.
Modified:
lld/trunk/wasm/Driver.cpp
Modified: lld/trunk/wasm/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Driver.cpp?rev=320433&r1=320432&r2=320433&view=diff
==============================================================================
--- lld/trunk/wasm/Driver.cpp (original)
+++ lld/trunk/wasm/Driver.cpp Mon Dec 11 15:09:03 2017
@@ -298,8 +298,6 @@ void LinkerDriver::link(ArrayRef<const c
// 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 c
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);
More information about the llvm-commits
mailing list