diff options
author | Edwin Török <edwintorok@gmail.com> | 2009-07-11 13:10:19 +0000 |
---|---|---|
committer | Edwin Török <edwintorok@gmail.com> | 2009-07-11 13:10:19 +0000 |
commit | ced9ff8ea2fac344da91d925294817ad51f51e06 (patch) | |
tree | 948cd8ec42ea724903f0789140bdbfd4f11241dc /lib/CodeGen/RegAllocLinearScan.cpp | |
parent | 141d4c5676bcbfc3733eee26771505b39ba4ce99 (diff) | |
download | external_llvm-ced9ff8ea2fac344da91d925294817ad51f51e06.tar.gz external_llvm-ced9ff8ea2fac344da91d925294817ad51f51e06.tar.bz2 external_llvm-ced9ff8ea2fac344da91d925294817ad51f51e06.zip |
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
Diffstat (limited to 'lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocLinearScan.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/RegAllocLinearScan.cpp b/lib/CodeGen/RegAllocLinearScan.cpp index 904b4cb2a4..fb837511c5 100644 --- a/lib/CodeGen/RegAllocLinearScan.cpp +++ b/lib/CodeGen/RegAllocLinearScan.cpp @@ -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; } |