Move coveragemap_error enum into coverage namespace and InstrProf.h /NFC
[oota-llvm.git] / include / llvm / ProfileData / CoverageMapping.h
index ca44442001b4aafd9923544b73d73ddbe593bf3e..115f16addbf6c64ef75e29c447d8f9e93c6133a8 100644 (file)
@@ -482,26 +482,6 @@ template<> struct DenseMapInfo<coverage::CounterExpression> {
   }
 };
 
-const std::error_category &coveragemap_category();
-
-enum class coveragemap_error {
-  success = 0,
-  eof,
-  no_data_found,
-  unsupported_version,
-  truncated,
-  malformed
-};
-
-inline std::error_code make_error_code(coveragemap_error E) {
-  return std::error_code(static_cast<int>(E), coveragemap_category());
-}
-
 } // end namespace llvm
 
-namespace std {
-template <>
-struct is_error_code_enum<llvm::coveragemap_error> : std::true_type {};
-}
-
 #endif // LLVM_PROFILEDATA_COVERAGEMAPPING_H_