[llvm-commits] [llvm] r132931 - /llvm/trunk/lib/Support/CommandLine.cpp

Evan Cheng evan.cheng at apple.com
Mon Jun 13 13:45:54 PDT 2011


Author: evancheng
Date: Mon Jun 13 15:45:54 2011
New Revision: 132931

URL: http://llvm.org/viewvc/llvm-project?rev=132931&view=rev
Log:
Aliased flag options should be directed to stdout, not stderr to be consistent. Patch by Julien Lerouge.

Modified:
    llvm/trunk/lib/Support/CommandLine.cpp

Modified: llvm/trunk/lib/Support/CommandLine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CommandLine.cpp?rev=132931&r1=132930&r2=132931&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CommandLine.cpp (original)
+++ llvm/trunk/lib/Support/CommandLine.cpp Mon Jun 13 15:45:54 2011
@@ -911,8 +911,8 @@
 // Print out the option for the alias.
 void alias::printOptionInfo(size_t GlobalWidth) const {
   size_t L = std::strlen(ArgStr);
-  errs() << "  -" << ArgStr;
-  errs().indent(GlobalWidth-L-6) << " - " << HelpStr << "\n";
+  outs() << "  -" << ArgStr;
+  outs().indent(GlobalWidth-L-6) << " - " << HelpStr << "\n";
 }
 
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list