From 3bb1276ed2d3dac2b06e4890f28970c6889c1361 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 12 Jun 2008 13:09:43 +0000 Subject: 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. llvm-svn: 52235 --- llvm/tools/bugpoint/ExecutionDriver.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'llvm/tools/bugpoint/ExecutionDriver.cpp') diff --git a/llvm/tools/bugpoint/ExecutionDriver.cpp b/llvm/tools/bugpoint/ExecutionDriver.cpp index 49480efb636..96341116fcc 100644 --- a/llvm/tools/bugpoint/ExecutionDriver.cpp +++ b/llvm/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) { -- cgit v1.2.3