summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ExecutionDriver.cpp
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2008-06-12 13:09:43 +0000
committerMatthijs Kooijman <matthijs@stdin.nl>2008-06-12 13:09:43 +0000
commit3bb1276ed2d3dac2b06e4890f28970c6889c1361 (patch)
treecb5f7636b6b47066c12a130eb921b96eceff6b95 /llvm/tools/bugpoint/ExecutionDriver.cpp
parent4ba5df8a68bde124046d7b0471a60464958f7b20 (diff)
downloadbcm5719-llvm-3bb1276ed2d3dac2b06e4890f28970c6889c1361.tar.gz
bcm5719-llvm-3bb1276ed2d3dac2b06e4890f28970c6889c1361.zip
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
Diffstat (limited to 'llvm/tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r--llvm/tools/bugpoint/ExecutionDriver.cpp5
1 files changed, 4 insertions, 1 deletions
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) {
OpenPOWER on IntegriCloud