Rename UnresolvedPolicy::Error -> UnresolvedPolicy::ReportError.
authorRui Ueyama <ruiu@google.com>
Fri, 2 Sep 2016 19:36:29 +0000 (19:36 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 2 Sep 2016 19:36:29 +0000 (19:36 +0000)
"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
lld/ELF/Driver.cpp

index f06cfbd..f06fe1b 100644 (file)
@@ -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;
index 7f10823..45b1537 100644 (file)
@@ -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) {