summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-02 22:46:18 +0000
committerChris Lattner <sabre@nondot.org>2009-07-02 22:46:18 +0000
commit92bcb426c3e4503c99324afd4ed0a73521711a56 (patch)
treee8f7a3d1a6ec95fa77eb1c5590fa2a5f96ab2075 /tools/bugpoint/BugDriver.cpp
parent7e1e31f467d87c834d8baf673929865907901313 (diff)
downloadllvm-92bcb426c3e4503c99324afd4ed0a73521711a56.tar.gz
llvm-92bcb426c3e4503c99324afd4ed0a73521711a56.tar.bz2
llvm-92bcb426c3e4503c99324afd4ed0a73521711a56.tar.xz
switch the .ll parser into SMDiagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.cpp')
-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 847de1f806..aab50720c6 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/SourceMgr.h"
#include "llvm/Support/raw_ostream.h"
#include <iostream>
#include <memory>
@@ -82,9 +83,9 @@ Module *llvm::ParseInputFile(const std::string &Filename,
if (Buffer.get())
Result = ParseBitcodeFile(Buffer.get(), Ctxt);
- ParseError Err;
+ SMDiagnostic Err;
if (!Result && !(Result = ParseAssemblyFile(Filename, Err, Ctxt))) {
- Err.PrintError("bugpoint", errs());
+ Err.Print("bugpoint", errs());
Result = 0;
}