Output 'ANALYZE' messages to standard error.  This should address the intermixing of 'ANALYZE' and the other diagnostics the clang driver emits to standard error.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59730 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/AnalysisConsumer.cpp b/Driver/AnalysisConsumer.cpp
index 10e6968..503ad38 100644
--- a/Driver/AnalysisConsumer.cpp
+++ b/Driver/AnalysisConsumer.cpp
@@ -236,14 +236,14 @@
       DisplayedFunction = true;
       
       if (FunctionDecl *FD = dyn_cast<FunctionDecl>(getCodeDecl())) {
-        llvm::cout << "ANALYZE: "
+        llvm::cerr << "ANALYZE: "
         << getContext().getSourceManager().getSourceName(FD->getLocation())
         << ' '
         << FD->getIdentifier()->getName()
         << '\n';
       }
       else if (ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(getCodeDecl())) {
-        llvm::cout << "ANALYZE (ObjC Method): "
+        llvm::cerr << "ANALYZE (ObjC Method): "
         << getContext().getSourceManager().getSourceName(MD->getLocation())
         << " '"
         << MD->getSelector().getName() << "'\n";