diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-10 21:26:47 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-10 21:26:47 +0000 |
commit | fbb5f701863550f56438db7cb690fa1751f4148b (patch) | |
tree | c5791735bfa3712b88300aa5d04e5d72d110639a /lib/ProfileData | |
parent | f85ae2a8c29d4391a487f91b03bb8add99d80639 (diff) | |
download | llvm-fbb5f701863550f56438db7cb690fa1751f4148b.tar.gz llvm-fbb5f701863550f56438db7cb690fa1751f4148b.tar.bz2 llvm-fbb5f701863550f56438db7cb690fa1751f4148b.tar.xz |
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
Diffstat (limited to 'lib/ProfileData')
-rw-r--r-- | lib/ProfileData/InstrProf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ProfileData/InstrProf.cpp b/lib/ProfileData/InstrProf.cpp index a6583130ee..94a79e9ed0 100644 --- a/lib/ProfileData/InstrProf.cpp +++ b/lib/ProfileData/InstrProf.cpp @@ -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; |