r299597 - [Driver] Print a newline when invoking `-print-resource-dir`

Meador Inge via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 5 15:27:21 PDT 2017


Author: meadori
Date: Wed Apr  5 17:27:20 2017
New Revision: 299597

URL: http://llvm.org/viewvc/llvm-project?rev=299597&view=rev
Log:
[Driver] Print a newline when invoking `-print-resource-dir`

The commit yesterday (r299473) to add the `-print-resource-dir`
option was supposed to emit a newline after the resource dir.

Differential Revision: https://reviews.llvm.org/D31447

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

Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=299597&r1=299596&r2=299597&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Apr  5 17:27:20 2017
@@ -1170,7 +1170,7 @@ bool Driver::HandleImmediateArgs(const C
     TC.printVerboseInfo(llvm::errs());
 
   if (C.getArgs().hasArg(options::OPT_print_resource_dir)) {
-    llvm::outs() << ResourceDir;
+    llvm::outs() << ResourceDir << '\n';
     return false;
   }
 




More information about the cfe-commits mailing list