r215044 - Add back the leading space when printing commands with -###

Reid Kleckner reid at kleckner.net
Wed Aug 6 17:05:01 PDT 2014


Author: rnk
Date: Wed Aug  6 19:05:00 2014
New Revision: 215044

URL: http://llvm.org/viewvc/llvm-project?rev=215044&view=rev
Log:
Add back the leading space when printing commands with -###

This was an unintentional behavior change from r214924.

Modified:
    cfe/trunk/lib/Driver/Job.cpp

Modified: cfe/trunk/lib/Driver/Job.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Job.cpp?rev=215044&r1=215043&r2=215044&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Job.cpp (original)
+++ cfe/trunk/lib/Driver/Job.cpp Wed Aug  6 19:05:00 2014
@@ -96,6 +96,7 @@ static void PrintArg(raw_ostream &OS, co
 void Command::Print(raw_ostream &OS, const char *Terminator, bool Quote,
                     bool CrashReport) const {
   // Always quote the exe.
+  OS << ' ';
   PrintArg(OS, Executable, /*Quote=*/true);
 
   for (size_t i = 0, e = Arguments.size(); i < e; ++i) {





More information about the cfe-commits mailing list