diff options
| author | Rui Ueyama <ruiu@google.com> | 2017-03-23 18:16:42 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2017-03-23 18:16:42 +0000 |
| commit | 0cbf1fd2f699825af7e1f14c001e129cf57caaee (patch) | |
| tree | d5bfe4aeb5432346eb99dfd469c62a817db4a987 /lld/ELF/Driver.cpp | |
| parent | e3c9070f06d33907e77956fd16abca90bf5ef819 (diff) | |
| download | bcm5719-llvm-0cbf1fd2f699825af7e1f14c001e129cf57caaee.tar.gz bcm5719-llvm-0cbf1fd2f699825af7e1f14c001e129cf57caaee.zip | |
Fix varaible names that correspond to command line options.
llvm-svn: 298632
Diffstat (limited to 'lld/ELF/Driver.cpp')
| -rw-r--r-- | lld/ELF/Driver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 09c232a846c..3445edfa0c7 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)) { |

