diff options
author | Nico Weber <nicolasweber@gmx.de> | 2014-07-06 03:04:24 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2014-07-06 03:04:24 +0000 |
commit | 2582895832a7685beec58b310a1e9ad42bc60731 (patch) | |
tree | 53b7c421296397303e37ab2cddbf7d9e0b1979d6 /clang/lib/Frontend/HeaderIncludeGen.cpp | |
parent | d7a0d64c14d6784684f160e83a3d963a585f8d8b (diff) | |
download | bcm5719-llvm-2582895832a7685beec58b310a1e9ad42bc60731.tar.gz bcm5719-llvm-2582895832a7685beec58b310a1e9ad42bc60731.zip |
clang-cl: /showIncludes output should go to stdout, not stderr. Fixes PR20217.
llvm-svn: 212383
Diffstat (limited to 'clang/lib/Frontend/HeaderIncludeGen.cpp')
-rw-r--r-- | clang/lib/Frontend/HeaderIncludeGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/HeaderIncludeGen.cpp b/clang/lib/Frontend/HeaderIncludeGen.cpp index 6d2e3783211..8b2435ba9be 100644 --- a/clang/lib/Frontend/HeaderIncludeGen.cpp +++ b/clang/lib/Frontend/HeaderIncludeGen.cpp @@ -49,7 +49,7 @@ public: void clang::AttachHeaderIncludeGen(Preprocessor &PP, bool ShowAllHeaders, StringRef OutputPath, bool ShowDepth, bool MSStyle) { - raw_ostream *OutputFile = &llvm::errs(); + raw_ostream *OutputFile = MSStyle ? &llvm::outs() : &llvm::errs(); bool OwnsOutputFile = false; // Open the output file, if used. |