OSDN Git Service

Aliased flag options should be directed to stdout, not stderr to be consistent. Patch...
authorEvan Cheng <evan.cheng@apple.com>
Mon, 13 Jun 2011 20:45:54 +0000 (20:45 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 13 Jun 2011 20:45:54 +0000 (20:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132931 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/CommandLine.cpp

index 7f1c0d3..2914337 100644 (file)
@@ -911,8 +911,8 @@ size_t alias::getOptionWidth() const {
 // 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";
 }
 
 //===----------------------------------------------------------------------===//