forked from OSchip/llvm-project
Fix varaible names that correspond to command line options.
llvm-svn: 298632
This commit is contained in:
parent
e3c9070f06
commit
0cbf1fd2f6
|
@ -397,10 +397,10 @@ static UnresolvedPolicy getUnresolvedSymbolPolicy(opt::InputArgList &Args) {
|
|||
if (Args.hasArg(OPT_relocatable))
|
||||
return UnresolvedPolicy::IgnoreAll;
|
||||
|
||||
UnresolvedPolicy ErrorOrWarn =
|
||||
getArg(Args, OPT_error_undef, OPT_warn_undef, true)
|
||||
? UnresolvedPolicy::ReportError
|
||||
: UnresolvedPolicy::Warn;
|
||||
UnresolvedPolicy ErrorOrWarn = getArg(Args, OPT_error_unresolved_symbols,
|
||||
OPT_warn_unresolved_symbols, true)
|
||||
? UnresolvedPolicy::ReportError
|
||||
: UnresolvedPolicy::Warn;
|
||||
|
||||
// Process the last of -unresolved-symbols, -no-undefined or -z defs.
|
||||
for (auto *Arg : llvm::reverse(Args)) {
|
||||
|
|
|
@ -84,7 +84,7 @@ def entry: S<"entry">, MetaVarName<"<entry>">,
|
|||
def error_limit: S<"error-limit">,
|
||||
HelpText<"Maximum number of errors to emit before stopping (0 = no limit)">;
|
||||
|
||||
def error_undef: F<"error-unresolved-symbols">,
|
||||
def error_unresolved_symbols: F<"error-unresolved-symbols">,
|
||||
HelpText<"Report unresolved symbols as errors">;
|
||||
|
||||
def export_dynamic: F<"export-dynamic">,
|
||||
|
@ -262,7 +262,7 @@ def version_script: S<"version-script">,
|
|||
def warn_common: F<"warn-common">,
|
||||
HelpText<"Warn about duplicate common symbols">;
|
||||
|
||||
def warn_undef: F<"warn-unresolved-symbols">,
|
||||
def warn_unresolved_symbols: F<"warn-unresolved-symbols">,
|
||||
HelpText<"Report unresolved symbols as warnings">;
|
||||
|
||||
def whole_archive: F<"whole-archive">,
|
||||
|
|
Loading…
Reference in New Issue