[PATCH] D32185: [coff] use newlines instead of spaces as separators in msvclto response file

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 18 15:13:20 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL300612: [coff] use newlines instead of spaces as separators in msvclto response file (authored by inglorion).

Changed prior to commit:
  https://reviews.llvm.org/D32185?vs=95613&id=95641#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D32185

Files:
  lld/trunk/COFF/Driver.cpp
  lld/trunk/COFF/DriverUtils.cpp


Index: lld/trunk/COFF/Driver.cpp
===================================================================
--- lld/trunk/COFF/Driver.cpp
+++ lld/trunk/COFF/Driver.cpp
@@ -509,7 +509,7 @@
 
 // Create response file contents and invoke the MSVC linker.
 void LinkerDriver::invokeMSVC(opt::InputArgList &Args) {
-  std::string Rsp = "/nologo ";
+  std::string Rsp = "/nologo\n";
   std::vector<std::string> Temps;
 
   for (auto *Arg : Args) {
@@ -528,14 +528,14 @@
     case OPT_INPUT: {
       if (Optional<StringRef> Path = doFindFile(Arg->getValue())) {
         if (Optional<std::string> S = filterBitcodeFiles(*Path, Temps))
-          Rsp += quote(*S) + " ";
+          Rsp += quote(*S) + "\n";
         continue;
       }
-      Rsp += quote(Arg->getValue()) + " ";
+      Rsp += quote(Arg->getValue()) + "\n";
       break;
     }
     default:
-      Rsp += toString(Arg) + " ";
+      Rsp += toString(Arg) + "\n";
     }
   }
 
Index: lld/trunk/COFF/DriverUtils.cpp
===================================================================
--- lld/trunk/COFF/DriverUtils.cpp
+++ lld/trunk/COFF/DriverUtils.cpp
@@ -634,7 +634,7 @@
   std::vector<TemporaryFile> Temps;
   for (StringRef S : Objects) {
     Temps.emplace_back("lto", "obj", S);
-    Rsp += quote(Temps.back().Path) + " ";
+    Rsp += quote(Temps.back().Path) + "\n";
   }
 
   log("link.exe " + Rsp);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32185.95641.patch
Type: text/x-patch
Size: 1361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170418/22318dc5/attachment.bin>


More information about the llvm-commits mailing list