mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
We don't need to use llvm_report_error, this interface can deal with errors
(although we don't get a very good error message). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -23,7 +23,6 @@
|
|||||||
#include "llvm/Target/TargetRegistry.h"
|
#include "llvm/Target/TargetRegistry.h"
|
||||||
#include "llvm/Transforms/Scalar.h"
|
#include "llvm/Transforms/Scalar.h"
|
||||||
#include "llvm/Support/CommandLine.h"
|
#include "llvm/Support/CommandLine.h"
|
||||||
#include "llvm/Support/ErrorHandling.h"
|
|
||||||
#include "llvm/Support/FormattedStream.h"
|
#include "llvm/Support/FormattedStream.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@ -100,7 +99,8 @@ bool LLVMTargetMachine::addAssemblyEmitter(PassManagerBase &PM,
|
|||||||
formatted_raw_ostream &Out) {
|
formatted_raw_ostream &Out) {
|
||||||
FunctionPass *Printer = getTarget().createAsmPrinter(Out, *this, Verbose);
|
FunctionPass *Printer = getTarget().createAsmPrinter(Out, *this, Verbose);
|
||||||
if (!Printer)
|
if (!Printer)
|
||||||
llvm_report_error("unable to create assembly printer");
|
return true;
|
||||||
|
|
||||||
PM.add(Printer);
|
PM.add(Printer);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user