mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Mark a few functions noexcept.
This reduces the difference between std::error_code and llvm::error_code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210591 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,7 +19,7 @@ using namespace llvm;
|
||||
|
||||
namespace {
|
||||
class InstrProfErrorCategoryType : public error_category {
|
||||
const char *name() const override { return "llvm.instrprof"; }
|
||||
const char *name() const LLVM_NOEXCEPT override { return "llvm.instrprof"; }
|
||||
std::string message(int IE) const override {
|
||||
instrprof_error E = static_cast<instrprof_error>(IE);
|
||||
switch (E) {
|
||||
@@ -52,7 +52,7 @@ class InstrProfErrorCategoryType : public error_category {
|
||||
}
|
||||
llvm_unreachable("A value of instrprof_error has no message.");
|
||||
}
|
||||
error_condition default_error_condition(int EV) const override {
|
||||
error_condition default_error_condition(int EV) const LLVM_NOEXCEPT override {
|
||||
if (static_cast<instrprof_error>(EV) == instrprof_error::success)
|
||||
return error_condition();
|
||||
return errc::invalid_argument;
|
||||
|
Reference in New Issue
Block a user