summaryrefslogtreecommitdiff
path: root/tools/obj2yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tools/obj2yaml')
-rw-r--r--tools/obj2yaml/Error.h4
-rw-r--r--tools/obj2yaml/obj2yaml.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/obj2yaml/Error.h b/tools/obj2yaml/Error.h
index b4d13ba7d0..b91bfbb33c 100644
--- a/tools/obj2yaml/Error.h
+++ b/tools/obj2yaml/Error.h
@@ -10,10 +10,10 @@
#ifndef LLVM_TOOLS_ERROR_H
#define LLVM_TOOLS_ERROR_H
-#include "llvm/Support/system_error.h"
+#include <system_error>
namespace llvm {
-
+using std::error_code;
const std::error_category &obj2yaml_category();
enum class obj2yaml_error {
diff --git a/tools/obj2yaml/obj2yaml.h b/tools/obj2yaml/obj2yaml.h
index 19476f78f4..6d81110f7a 100644
--- a/tools/obj2yaml/obj2yaml.h
+++ b/tools/obj2yaml/obj2yaml.h
@@ -15,7 +15,7 @@
#include "llvm/Object/COFF.h"
#include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
std::error_code coff2yaml(llvm::raw_ostream &Out,
const llvm::object::COFFObjectFile &Obj);