]> granicus.if.org Git - clang/commitdiff
[Driver] Print a newline when invoking `-print-resource-dir`
authorMeador Inge <meadori@codesourcery.com>
Wed, 5 Apr 2017 22:27:20 +0000 (22:27 +0000)
committerMeador Inge <meadori@codesourcery.com>
Wed, 5 Apr 2017 22:27:20 +0000 (22:27 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@299597 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index adba98a93edd369f9d9d0566a9663768e5e3a25c..dda754127766e908855d9a31da472686276c4b8f 100644 (file)
@@ -1170,7 +1170,7 @@ bool Driver::HandleImmediateArgs(const Compilation &C) {
     TC.printVerboseInfo(llvm::errs());
 
   if (C.getArgs().hasArg(options::OPT_print_resource_dir)) {
-    llvm::outs() << ResourceDir;
+    llvm::outs() << ResourceDir << '\n';
     return false;
   }