From 0cbf1fd2f699825af7e1f14c001e129cf57caaee Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 23 Mar 2017 18:16:42 +0000 Subject: [PATCH] Fix varaible names that correspond to command line options. llvm-svn: 298632 --- lld/ELF/Driver.cpp | 8 ++++---- lld/ELF/Options.td | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 09c232a846c1..3445edfa0c7c 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -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)) { diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td index e41645243182..7ed8dfb090bd 100644 --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -84,7 +84,7 @@ def entry: S<"entry">, MetaVarName<"">, 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">,