From 65f57c233cd4499e2e8b52a503201e64edfd6a9e Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 15 Jul 2009 16:35:29 +0000 Subject: Use errs() instead of std::cerr. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75791 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/BugDriver.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/bugpoint/BugDriver.cpp') diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp index 269bf5fb09..ac5de15589 100644 --- a/tools/bugpoint/BugDriver.cpp +++ b/tools/bugpoint/BugDriver.cpp @@ -117,13 +117,13 @@ bool BugDriver::addSources(const std::vector &Filenames) { std::cout << "Linking in input file: '" << Filenames[i] << "'\n"; std::string ErrorMessage; if (Linker::LinkModules(Program, M.get(), &ErrorMessage)) { - std::cerr << ToolName << ": error linking in '" << Filenames[i] << "': " - << ErrorMessage << '\n'; + errs() << ToolName << ": error linking in '" << Filenames[i] << "': " + << ErrorMessage << '\n'; return true; } } } catch (const std::string &Error) { - std::cerr << ToolName << ": error reading input '" << Error << "'\n"; + errs() << ToolName << ": error reading input '" << Error << "'\n"; return true; } @@ -209,7 +209,7 @@ bool BugDriver::run() { return debugMiscompilation(); } } catch (ToolExecutionError &TEE) { - std::cerr << TEE.what(); + errs() << TEE.what(); return debugCodeGeneratorCrash(); } @@ -218,7 +218,7 @@ bool BugDriver::run() { try { return debugCodeGenerator(); } catch (ToolExecutionError &TEE) { - std::cerr << TEE.what(); + errs() << TEE.what(); return debugCodeGeneratorCrash(); } } -- cgit v1.2.3