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 | f31bf9f71beea0aea6737e4c9909adf5014af24c (patch) | |
tree | 685bff0463d32e52c051b433df460e400726ee03 /lld/MinGW | |
parent | c994c9bd3658a46d6def249cb67537e38b613b09 (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.
Diffstat (limited to 'lld/MinGW')
-rw-r--r-- | lld/MinGW/Driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp index 77bf057559c..e69db7ca4e3 100644 --- a/lld/MinGW/Driver.cpp +++ b/lld/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())); |