summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/Config.h2
-rw-r--r--lld/ELF/Driver.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h
index f06cfbdbacf..f06fe1bcec7 100644
--- a/lld/ELF/Config.h
+++ b/lld/ELF/Config.h
@@ -40,7 +40,7 @@ enum class DiscardPolicy { Default, All, Locals, None };
enum class StripPolicy { None, All, Debug };
// For --unresolved-symbols.
-enum class UnresolvedPolicy { NoUndef, Error, Warn, Ignore };
+enum class UnresolvedPolicy { NoUndef, ReportError, Warn, Ignore };
struct SymbolVersion {
llvm::StringRef Name;
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 7f1082310db..45b1537eaba 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -328,10 +328,10 @@ static UnresolvedPolicy getUnresolvedSymbolOption(opt::InputArgList &Args) {
if (S == "ignore-all" || S == "ignore-in-object-files")
return UnresolvedPolicy::Ignore;
if (S == "ignore-in-shared-libs" || S == "report-all")
- return UnresolvedPolicy::Error;
+ return UnresolvedPolicy::ReportError;
error("unknown --unresolved-symbols value: " + S);
}
- return UnresolvedPolicy::Error;
+ return UnresolvedPolicy::ReportError;
}
static bool isOutputFormatBinary(opt::InputArgList &Args) {
OpenPOWER on IntegriCloud