mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Convert more assert(0)+abort() -> LLVM_UNREACHABLE,
and abort()/exit() -> llvm_report_error(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75363 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -34,7 +34,9 @@
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include <algorithm>
|
||||
#include <set>
|
||||
#include <queue>
|
||||
@@ -235,7 +237,7 @@ namespace {
|
||||
}
|
||||
}
|
||||
if (Error)
|
||||
abort();
|
||||
llvm_unreachable();
|
||||
#endif
|
||||
regUse_.clear();
|
||||
regUseBackUp_.clear();
|
||||
@@ -1102,8 +1104,7 @@ void RALinScan::assignRegOrStackSlotAtInterval(LiveInterval* cur)
|
||||
DowngradedRegs.clear();
|
||||
assignRegOrStackSlotAtInterval(cur);
|
||||
} else {
|
||||
cerr << "Ran out of registers during register allocation!\n";
|
||||
exit(1);
|
||||
llvm_report_error("Ran out of registers during register allocation!");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user