From fee70ea8c6cb8ebbf24770f6b02c3d982ff95443 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 2 Sep 2016 19:36:29 +0000 Subject: [PATCH] Rename UnresolvedPolicy::Error -> UnresolvedPolicy::ReportError. "Error" looks like it is indicating a parse error. "Error" actually instructs the later process to report an error if there's an error condition. Thus the new name. llvm-svn: 280529 --- lld/ELF/Config.h | 2 +- lld/ELF/Driver.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/ELF/Config.h b/lld/ELF/Config.h index f06cfbd..f06fe1b 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 7f10823..45b1537 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) { -- 2.7.4