summaryrefslogtreecommitdiff
path: root/tools/bugpoint
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/BugDriver.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp
index 19f9685677..d050b59ed7 100644
--- a/tools/bugpoint/BugDriver.cpp
+++ b/tools/bugpoint/BugDriver.cpp
@@ -23,6 +23,7 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FileUtilities.h"
#include "llvm/Support/MemoryBuffer.h"
+#include "llvm/Support/raw_ostream.h"
#include <iostream>
#include <memory>
using namespace llvm;
@@ -80,8 +81,8 @@ Module *llvm::ParseInputFile(const std::string &Filename) {
Result = ParseBitcodeFile(Buffer.get());
ParseError Err;
- if (!Result && !(Result = ParseAssemblyFile(Filename, &Err))) {
- std::cerr << "bugpoint: " << Err.getMessage() << "\n";
+ if (!Result && !(Result = ParseAssemblyFile(Filename, Err))) {
+ Err.PrintError("bugpoint", errs());
Result = 0;
}