summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData/InstrProf.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-13 15:36:17 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-13 15:36:17 +0000
commit54f199797923764acc7a5d49f6523a887babfa9e (patch)
tree63cb61f96da489189bea20ebf597215e02651352 /llvm/lib/ProfileData/InstrProf.cpp
parentefb3822ac5217b9ce8e22aed2bfda09c0ed831b2 (diff)
downloadbcm5719-llvm-54f199797923764acc7a5d49f6523a887babfa9e.tar.gz
bcm5719-llvm-54f199797923764acc7a5d49f6523a887babfa9e.zip
Remove unused and odd code.
This code was never being used and any use of it would look fairly strange. For example, it would try to map a object_error::parse_failed to std::errc::invalid_argument. llvm-svn: 210912
Diffstat (limited to 'llvm/lib/ProfileData/InstrProf.cpp')
-rw-r--r--llvm/lib/ProfileData/InstrProf.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp
index 628edfb86cd..01212227206 100644
--- a/llvm/lib/ProfileData/InstrProf.cpp
+++ b/llvm/lib/ProfileData/InstrProf.cpp
@@ -52,12 +52,6 @@ class InstrProfErrorCategoryType : public std::error_category {
}
llvm_unreachable("A value of instrprof_error has no message.");
}
- std::error_condition
- default_error_condition(int EV) const LLVM_NOEXCEPT override {
- if (static_cast<instrprof_error>(EV) == instrprof_error::success)
- return std::error_condition();
- return std::errc::invalid_argument;
- }
};
}
OpenPOWER on IntegriCloud