From: Matthijs Kooijman Date: Thu, 12 Jun 2008 13:09:43 +0000 (+0000) Subject: Let bugpoint display generated messages on stderr only if no interpreter was X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ad6996d74f60340d6139af8f345d93735661fbba;p=oota-llvm.git Let bugpoint display generated messages on stderr only if no interpreter was found, this ensures that messages like "Found gcc" end up on stdout where they belong. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52235 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index 49480efb636..96341116fcc 100644 --- a/tools/bugpoint/ExecutionDriver.cpp +++ b/tools/bugpoint/ExecutionDriver.cpp @@ -164,7 +164,10 @@ bool BugDriver::initializeExecutionEnvironment() { Message = "Sorry, this back-end is not supported by bugpoint right now!\n"; break; } - std::cerr << Message; + if (!Interpreter) + std::cerr << Message; + else // Display informational messages on stdout instead of stderr + std::cout << Message; // Initialize auxiliary tools for debugging if (InterpreterSel == RunCBE) {