summaryrefslogtreecommitdiff
path: root/tools/obj2yaml
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-12 17:38:55 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-12 17:38:55 +0000
commitd5132f907367b43d43108bd4367dbbcb650f98ce (patch)
tree3aee9aaa022426d7a3a4714031243c26f168536c /tools/obj2yaml
parentf58ab6bddb21ce1fc4ba6e11ff24857399978812 (diff)
downloadllvm-d5132f907367b43d43108bd4367dbbcb650f98ce.tar.gz
llvm-d5132f907367b43d43108bd4367dbbcb650f98ce.tar.bz2
llvm-d5132f907367b43d43108bd4367dbbcb650f98ce.tar.xz
Remove system_error.h.
This is a minimal change to remove the header. I will remove the occurrences of "using std::error_code" in a followup patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210803 91177308-0d34-0410-b5e6-96231b3b80d8
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);