[llvm-commits] [llvm] r75864 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Daniel Dunbar
daniel at zuster.org
Wed Jul 15 16:54:03 PDT 2009
Author: ddunbar
Date: Wed Jul 15 18:54:01 2009
New Revision: 75864
URL: http://llvm.org/viewvc/llvm-project?rev=75864&view=rev
Log:
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).
Modified:
llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=75864&r1=75863&r2=75864&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Wed Jul 15 18:54:01 2009
@@ -23,7 +23,6 @@
#include "llvm/Target/TargetRegistry.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Support/CommandLine.h"
-#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormattedStream.h"
using namespace llvm;
@@ -100,7 +99,8 @@
formatted_raw_ostream &Out) {
FunctionPass *Printer = getTarget().createAsmPrinter(Out, *this, Verbose);
if (!Printer)
- llvm_report_error("unable to create assembly printer");
+ return true;
+
PM.add(Printer);
return false;
}
More information about the llvm-commits
mailing list