Satiate the sanitizer build bot
[oota-llvm.git] / include / llvm / ProfileData / InstrProf.h
index 755ba36bcab9f848f9aefcc67a21fd911a15d337..eafb76886c83e8ff4697846e388213dedf9aa7cc 100644 (file)
 #ifndef LLVM_PROFILEDATA_INSTRPROF_H_
 #define LLVM_PROFILEDATA_INSTRPROF_H_
 
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 namespace llvm {
-
-const error_category &instrprof_category();
+const std::error_category &instrprof_category();
 
 enum class instrprof_error {
     success = 0,
@@ -38,8 +37,8 @@ enum class instrprof_error {
     counter_overflow
 };
 
-inline error_code make_error_code(instrprof_error E) {
-  return error_code(static_cast<int>(E), instrprof_category());
+inline std::error_code make_error_code(instrprof_error E) {
+  return std::error_code(static_cast<int>(E), instrprof_category());
 }
 
 } // end namespace llvm