forked from OSchip/llvm-project
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
This commit is contained in:
parent
6c7ad13f89
commit
fee70ea8c6
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue