diff options
author | Rui Ueyama <ruiu@google.com> | 2017-09-13 19:44:36 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-09-13 19:44:36 +0000 |
commit | a82843a2297895ea21cd2471776282ea1c1168ef (patch) | |
tree | 2616ff750f9dfd4e67cfdefc0cd1ceb7ff98ef41 /MinGW | |
parent | fe9107d86d1fac5104ce8eb94ead7aa9dd967a11 (diff) |
Use getUnaliasedOption so that this switch works for option aliases.
There are no alises handled by this switch, but getUnaliasesdOption is
preferred way of doing this. This is also consistent with ELF and COFF.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@313180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'MinGW')
-rw-r--r-- | MinGW/Driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MinGW/Driver.cpp b/MinGW/Driver.cpp index 77bf05755..e69db7ca4 100644 --- a/MinGW/Driver.cpp +++ b/MinGW/Driver.cpp @@ -178,7 +178,7 @@ bool mingw::link(ArrayRef<const char *> ArgsArr, raw_ostream &Diag) { StringRef Prefix = ""; bool Static = false; for (auto *A : Args) { - switch (A->getOption().getID()) { + switch (A->getOption().getUnaliasedOption().getID()) { case OPT_INPUT: if (StringRef(A->getValue()).endswith(".def")) Add("-def:" + StringRef(A->getValue())); |