mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
switch the .ll parser into SMDiagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74734 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user