From 2582895832a7685beec58b310a1e9ad42bc60731 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sun, 6 Jul 2014 03:04:24 +0000 Subject: clang-cl: /showIncludes output should go to stdout, not stderr. Fixes PR20217. llvm-svn: 212383 --- clang/lib/Frontend/HeaderIncludeGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend/HeaderIncludeGen.cpp') 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. -- cgit v1.2.3