diff options
author | Torok Edwin <edwintorok@gmail.com> | 2009-07-08 19:04:27 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2009-07-08 19:04:27 +0000 |
commit | 804e0fea4033e3b91dbc8198cef30de30f141bb5 (patch) | |
tree | 5a0a48c149464165b7df8e87980b51c5964f9f46 /lib/Target/XCore/XCoreAsmPrinter.cpp | |
parent | e9b11b431308f4766b73cda93e38ec930c912122 (diff) | |
download | llvm-804e0fea4033e3b91dbc8198cef30de30f141bb5.tar.gz llvm-804e0fea4033e3b91dbc8198cef30de30f141bb5.tar.bz2 llvm-804e0fea4033e3b91dbc8198cef30de30f141bb5.tar.xz |
Convert more abort() calls to llvm_report_error().
Also remove trailing semicolon.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreAsmPrinter.cpp')
-rw-r--r-- | lib/Target/XCore/XCoreAsmPrinter.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/Target/XCore/XCoreAsmPrinter.cpp b/lib/Target/XCore/XCoreAsmPrinter.cpp index 67cb0c8210..1b7238cb48 100644 --- a/lib/Target/XCore/XCoreAsmPrinter.cpp +++ b/lib/Target/XCore/XCoreAsmPrinter.cpp @@ -32,6 +32,7 @@ #include "llvm/ADT/Statistic.h" #include "llvm/ADT/StringExtras.h" #include "llvm/Support/CommandLine.h" +#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/MathExtras.h" #include "llvm/Support/raw_ostream.h" #include <algorithm> @@ -186,8 +187,7 @@ emitGlobal(const GlobalVariable *GV) switch (GV->getLinkage()) { case GlobalValue::AppendingLinkage: - cerr << "AppendingLinkage is not supported by this target!\n"; - abort(); + llvm_report_error("AppendingLinkage is not supported by this target!"); case GlobalValue::LinkOnceAnyLinkage: case GlobalValue::LinkOnceODRLinkage: case GlobalValue::WeakAnyLinkage: @@ -204,14 +204,11 @@ emitGlobal(const GlobalVariable *GV) case GlobalValue::PrivateLinkage: break; case GlobalValue::GhostLinkage: - cerr << "Should not have any unmaterialized functions!\n"; - abort(); + llvm_report_error("Should not have any unmaterialized functions!"); case GlobalValue::DLLImportLinkage: - cerr << "DLLImport linkage is not supported by this target!\n"; - abort(); + llvm_report_error("DLLImport linkage is not supported by this target!"); case GlobalValue::DLLExportLinkage: - cerr << "DLLExport linkage is not supported by this target!\n"; - abort(); + llvm_report_error("DLLExport linkage is not supported by this target!"); default: assert(0 && "Unknown linkage type!"); } |