[lld] r308523 - Fix one more occurrence of getOption().getID().

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 14:06:46 PDT 2017


Author: ruiu
Date: Wed Jul 19 14:06:46 2017
New Revision: 308523

URL: http://llvm.org/viewvc/llvm-project?rev=308523&view=rev
Log:
Fix one more occurrence of getOption().getID().

Modified:
    lld/trunk/ELF/DriverUtils.cpp

Modified: lld/trunk/ELF/DriverUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/DriverUtils.cpp?rev=308523&r1=308522&r2=308523&view=diff
==============================================================================
--- lld/trunk/ELF/DriverUtils.cpp (original)
+++ lld/trunk/ELF/DriverUtils.cpp Wed Jul 19 14:06:46 2017
@@ -141,7 +141,7 @@ std::string elf::createResponseFile(cons
 
   // Copy the command line to the output while rewriting paths.
   for (auto *Arg : Args) {
-    switch (Arg->getOption().getID()) {
+    switch (Arg->getOption().getUnaliasedOption().getID()) {
     case OPT_reproduce:
       break;
     case OPT_INPUT:
@@ -157,7 +157,6 @@ std::string elf::createResponseFile(cons
     case OPT_L:
     case OPT_dynamic_list:
     case OPT_rpath:
-    case OPT_alias_script_T:
     case OPT_script:
     case OPT_version_script:
       OS << Arg->getSpelling() << " " << quote(rewritePath(Arg->getValue()))




More information about the llvm-commits mailing list