From cc0d35a2e811dbc69df266322cc80807fa489359 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 13 Jun 2014 15:36:17 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210912 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ProfileData/InstrProf.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/ProfileData') diff --git a/lib/ProfileData/InstrProf.cpp b/lib/ProfileData/InstrProf.cpp index 628edfb86c..0121222720 100644 --- a/lib/ProfileData/InstrProf.cpp +++ b/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(EV) == instrprof_error::success) - return std::error_condition(); - return std::errc::invalid_argument; - } }; } -- cgit v1.2.3