diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-16 15:30:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-16 15:30:09 +0000 |
commit | ac95cc79ac0b899d566cc29c0f646f39c2fa35c0 (patch) | |
tree | a56cfb3fae390064970714d26d13dca84545c1fc /tools/bugpoint/ExecutionDriver.cpp | |
parent | ad60f660c6fd1999a3e21823128d37aca62e9285 (diff) | |
download | llvm-ac95cc79ac0b899d566cc29c0f646f39c2fa35c0.tar.gz llvm-ac95cc79ac0b899d566cc29c0f646f39c2fa35c0.tar.bz2 llvm-ac95cc79ac0b899d566cc29c0f646f39c2fa35c0.tar.xz |
Convert more tools code from cerr and cout to errs() and outs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r-- | tools/bugpoint/ExecutionDriver.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index 6e5b7a0514..7fd01ef241 100644 --- a/tools/bugpoint/ExecutionDriver.cpp +++ b/tools/bugpoint/ExecutionDriver.cpp @@ -19,7 +19,6 @@ #include "llvm/Support/FileUtilities.h" #include "llvm/Support/SystemUtils.h" #include <fstream> -#include <iostream> using namespace llvm; @@ -126,7 +125,7 @@ namespace { /// environment for executing LLVM programs. /// bool BugDriver::initializeExecutionEnvironment() { - std::cout << "Initializing execution environment: "; + outs() << "Initializing execution environment: "; // Create an instance of the AbstractInterpreter interface as specified on // the command line @@ -188,7 +187,7 @@ bool BugDriver::initializeExecutionEnvironment() { if (!Interpreter) errs() << Message; else // Display informational messages on stdout instead of stderr - std::cout << Message; + outs() << Message; std::string Path = SafeInterpreterPath; if (Path.empty()) @@ -260,10 +259,10 @@ bool BugDriver::initializeExecutionEnvironment() { "\"safe\" backend right now!\n"; break; } - if (!SafeInterpreter) { std::cout << Message << "\nExiting.\n"; exit(1); } + if (!SafeInterpreter) { outs() << Message << "\nExiting.\n"; exit(1); } gcc = GCC::create(getToolName(), Message, &GCCToolArgv); - if (!gcc) { std::cout << Message << "\nExiting.\n"; exit(1); } + if (!gcc) { outs() << Message << "\nExiting.\n"; exit(1); } // If there was an error creating the selected interpreter, quit with error. return Interpreter == 0; @@ -355,7 +354,7 @@ std::string BugDriver::executeProgram(std::string OutputFile, errs() << "<timeout>"; static bool FirstTimeout = true; if (FirstTimeout) { - std::cout << "\n" + outs() << "\n" "*** Program execution timed out! This mechanism is designed to handle\n" " programs stuck in infinite loops gracefully. The -timeout option\n" " can be used to change the timeout threshold or disable it completely\n" @@ -418,7 +417,7 @@ bool BugDriver::createReferenceFile(Module *M, const std::string &Filename) { } try { ReferenceOutputFile = executeProgramSafely(Filename); - std::cout << "\nReference output is: " << ReferenceOutputFile << "\n\n"; + outs() << "\nReference output is: " << ReferenceOutputFile << "\n\n"; } catch (ToolExecutionError &TEE) { errs() << TEE.what(); if (Interpreter != SafeInterpreter) { |