|
@@ -35,6 +35,7 @@
|
|
|
#include "llvm/ADT/StringExtras.h"
|
|
|
#include "llvm/ADT/StringSet.h"
|
|
|
#include "llvm/Support/Compiler.h"
|
|
|
+#include "llvm/Support/ErrorHandling.h"
|
|
|
#include "llvm/Support/Mangler.h"
|
|
|
#include "llvm/Support/MathExtras.h"
|
|
|
#include "llvm/Support/raw_ostream.h"
|
|
@@ -209,7 +210,7 @@ bool ARMAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
|
|
// Print out labels for the function.
|
|
|
const Function *F = MF.getFunction();
|
|
|
switch (F->getLinkage()) {
|
|
|
- default: assert(0 && "Unknown linkage type!");
|
|
|
+ default: LLVM_UNREACHABLE("Unknown linkage type!");
|
|
|
case Function::PrivateLinkage:
|
|
|
case Function::InternalLinkage:
|
|
|
SwitchToTextSection("\t.text", F);
|
|
@@ -306,7 +307,7 @@ void ARMAsmPrinter::printOperand(const MachineInstr *MI, int OpNum,
|
|
|
O << TRI->getAsmName(Reg);
|
|
|
}
|
|
|
} else
|
|
|
- assert(0 && "not implemented");
|
|
|
+ LLVM_UNREACHABLE("not implemented");
|
|
|
break;
|
|
|
}
|
|
|
case MachineOperand::MO_Immediate: {
|
|
@@ -1113,8 +1114,7 @@ void ARMAsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
|
|
|
case GlobalValue::InternalLinkage:
|
|
|
break;
|
|
|
default:
|
|
|
- assert(0 && "Unknown linkage type!");
|
|
|
- break;
|
|
|
+ LLVM_UNREACHABLE("Unknown linkage type!");
|
|
|
}
|
|
|
|
|
|
EmitAlignment(Align, GVar);
|