aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-07-08 19:04:27 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-07-08 19:04:27 +0000
commit804e0fea4033e3b91dbc8198cef30de30f141bb5 (patch)
tree5a0a48c149464165b7df8e87980b51c5964f9f46 /lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
parente9b11b431308f4766b73cda93e38ec930c912122 (diff)
downloadexternal_llvm-804e0fea4033e3b91dbc8198cef30de30f141bb5.tar.gz
external_llvm-804e0fea4033e3b91dbc8198cef30de30f141bb5.tar.bz2
external_llvm-804e0fea4033e3b91dbc8198cef30de30f141bb5.zip
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/Mips/AsmPrinter/MipsAsmPrinter.cpp')
-rw-r--r--lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp b/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
index cb4047988e..b2604e89e7 100644
--- a/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
+++ b/lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
@@ -33,6 +33,7 @@
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
+#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Mangler.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringExtras.h"
@@ -405,7 +406,7 @@ printOperand(const MachineInstr *MI, int opNum)
break;
default:
- O << "<unknown operand type>"; abort (); break;
+ llvm_report_error("<unknown operand type>"); break;
}
if (closeP) O << ")";
@@ -544,16 +545,13 @@ printModuleLevelGV(const GlobalVariable* GVar) {
printSizeAndType = false;
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!");
+ LLVM_UNREACHABLE("Unknown linkage type!");
}
EmitAlignment(Align, GVar);