summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData/InstrProf.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-10 21:26:47 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-10 21:26:47 +0000
commitf5d07fa586c3fbcb0deee6824a1cd8b7b812c0d4 (patch)
tree9a82c1429d74fe3956f97d834cd4b4526e74b72e /llvm/lib/ProfileData/InstrProf.cpp
parent3a3532ebb9e39ec1f67fa70d4d7450c60b245f57 (diff)
downloadbcm5719-llvm-f5d07fa586c3fbcb0deee6824a1cd8b7b812c0d4.tar.gz
bcm5719-llvm-f5d07fa586c3fbcb0deee6824a1cd8b7b812c0d4.zip
Mark a few functions noexcept.
This reduces the difference between std::error_code and llvm::error_code. llvm-svn: 210591
Diffstat (limited to 'llvm/lib/ProfileData/InstrProf.cpp')
-rw-r--r--llvm/lib/ProfileData/InstrProf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp
index a6583130ee7..94a79e9ed03 100644
--- a/llvm/lib/ProfileData/InstrProf.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud