Remove system_error.h.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 12 Jun 2014 17:38:55 +0000 (17:38 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 12 Jun 2014 17:38:55 +0000 (17:38 +0000)
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

58 files changed:
include/llvm/IR/GVMaterializer.h
include/llvm/IR/Module.h
include/llvm/Object/Error.h
include/llvm/ProfileData/InstrProf.h
include/llvm/Support/ErrorOr.h
include/llvm/Support/FileSystem.h
include/llvm/Support/LockFileManager.h
include/llvm/Support/Memory.h
include/llvm/Support/MemoryBuffer.h
include/llvm/Support/Process.h
include/llvm/Support/Program.h
include/llvm/Support/YAMLTraits.h
include/llvm/Support/system_error.h [deleted file]
lib/AsmParser/Parser.cpp
lib/Bitcode/Reader/BitcodeReader.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
lib/IR/Core.cpp
lib/IR/GCOV.cpp
lib/IRReader/IRReader.cpp
lib/LTO/LTOCodeGenerator.cpp
lib/LTO/LTOModule.cpp
lib/Object/ObjectFile.cpp
lib/Support/CommandLine.cpp
lib/Support/DataStream.cpp
lib/Support/FileOutputBuffer.cpp
lib/Support/FileUtilities.cpp
lib/Support/MemoryBuffer.cpp
lib/Support/Program.cpp
lib/Support/SourceMgr.cpp
lib/Support/Windows/WindowsSupport.h
lib/Support/raw_ostream.cpp
lib/TableGen/Main.cpp
lib/Transforms/Instrumentation/AddressSanitizer.cpp
lib/Transforms/Utils/SpecialCaseList.cpp
tools/gold/gold-plugin.cpp
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
tools/llvm-cov/llvm-cov.cpp
tools/llvm-dis/llvm-dis.cpp
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
tools/llvm-mcmarkup/llvm-mcmarkup.cpp
tools/llvm-nm/llvm-nm.cpp
tools/llvm-objdump/COFFDump.cpp
tools/llvm-objdump/MachODump.cpp
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-readobj/COFFDumper.cpp
tools/llvm-readobj/Error.h
tools/llvm-readobj/ObjDumper.h
tools/llvm-readobj/llvm-readobj.cpp
tools/llvm-rtdyld/llvm-rtdyld.cpp
tools/llvm-size/llvm-size.cpp
tools/macho-dump/macho-dump.cpp
tools/obj2yaml/Error.h
tools/obj2yaml/obj2yaml.h
tools/yaml2obj/yaml2obj.cpp
utils/FileCheck/FileCheck.cpp
utils/FileUpdate/FileUpdate.cpp
utils/KillTheDoctor/KillTheDoctor.cpp
utils/yaml-bench/YAMLBench.cpp

index dbe52bc2a32928b05d6d1af157877c1a2dbec2f8..229048a3ba2e4fb9bc9dd9ce2dcfa6cd1dfab5f6 100644 (file)
 #ifndef LLVM_IR_GVMATERIALIZER_H
 #define LLVM_IR_GVMATERIALIZER_H
 
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 namespace llvm {
-
+using std::error_code;
 class Function;
 class GlobalValue;
 class Module;
index 0c309e89c90220dc0cfd9196ee8319773f284d46..7e991588733a2f4ca0368f1cc43ee49c0283efcf 100644 (file)
@@ -23,7 +23,7 @@
 #include "llvm/IR/Metadata.h"
 #include "llvm/Support/CBindingWrapping.h"
 #include "llvm/Support/DataTypes.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 namespace llvm {
 
index 3db9fa45e38b7a34c81d6325602b99e8bba04f09..4d969393db23f756691f7ea5f8c34814263c15f8 100644 (file)
 #ifndef LLVM_OBJECT_ERROR_H
 #define LLVM_OBJECT_ERROR_H
 
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 namespace llvm {
+using std::error_code;
 namespace object {
 
 const std::error_category &object_category();
index b44b92ef62676fbd6869defdfdaa20124d7c6265..a3413d700843e9f662230b8c3d0188d294b7bf65 100644 (file)
 #ifndef LLVM_PROFILEDATA_INSTRPROF_H_
 #define LLVM_PROFILEDATA_INSTRPROF_H_
 
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 namespace llvm {
-
+using std::error_code;
 const std::error_category &instrprof_category();
 
 enum class instrprof_error {
index c59f86f1b903cd5fd8afaa31307f62a90d3950c0..8664ced657a165fcd0ea2def57dc04f5ffbb655f 100644 (file)
 
 #include "llvm/ADT/PointerIntPair.h"
 #include "llvm/Support/AlignOf.h"
-#include "llvm/Support/system_error.h"
 #include <cassert>
+#include <system_error>
 #include <type_traits>
 
 namespace llvm {
+using std::error_code;
 template<class T, class V>
 typename std::enable_if< std::is_constructible<T, V>::value
                        , typename std::remove_reference<V>::type>::type &&
index b5dcc665c7ff38f27af39b83bf944f1e46137ec9..678a3c19ca606e3d4a4ec91bbed53ea10ceddd1a 100644 (file)
 #include "llvm/Support/DataTypes.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/TimeValue.h"
-#include "llvm/Support/system_error.h"
 #include <ctime>
 #include <iterator>
 #include <stack>
 #include <string>
+#include <system_error>
 #include <tuple>
 #include <vector>
 
@@ -46,6 +46,7 @@
 #endif
 
 namespace llvm {
+using std::error_code;
 namespace sys {
 namespace fs {
 
index 523a781b87d609b0fbb50a8dd653bd42a0ba0464..dca28fa878f474232d6b78fdf803e57e2d2e55df 100644 (file)
 #include "llvm/ADT/Optional.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringRef.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 #include <utility> // for std::pair
 
 namespace llvm {
-
+using std::error_code;
 /// \brief Class that manages the creation of a lock file to aid
 /// implicit coordination between different processes.
 ///
index 0996adb23f94c63e5d2cce99225a79b417621481..acd7a04080016096fd39463b6c2355106c644a9c 100644 (file)
 #define LLVM_SUPPORT_MEMORY_H
 
 #include "llvm/Support/DataTypes.h"
-#include "llvm/Support/system_error.h"
 #include <string>
+#include <system_error>
 
 namespace llvm {
+using std::error_code;
 namespace sys {
 
   /// This class encapsulates the notion of a memory block which has an address
index ddb1a992d1d9f3d97e8eadd61f4d43cf82ab3f3a..6d6a5da180b70ce3ce63d4fef6c100191c165c9b 100644 (file)
 #include "llvm/Support/CBindingWrapping.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/DataTypes.h"
-#include "llvm/Support/system_error.h"
 #include <memory>
+#include <system_error>
 
 namespace llvm {
+using std::error_code;
 /// MemoryBuffer - This interface provides simple read-only access to a block
 /// of memory, and provides simple methods for reading files and standard input
 /// into a memory buffer.  In addition to basic access to the characters in the
index 7f6441ea206aa774de9334a7265daa96e0cc0c95..3ca3372afd743f9e0b8c8c05981899adfe337ffc 100644 (file)
@@ -31,7 +31,7 @@
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/DataTypes.h"
 #include "llvm/Support/TimeValue.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 namespace llvm {
 class StringRef;
index 4cf90ab7324ecd608e7dcaf2e41a5864018a160f..c1269508e04c16b2bb1e69bdbefcc2ca819ac424 100644 (file)
 
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/Support/Path.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 namespace llvm {
+using std::error_code;
 namespace sys {
 
   /// This is the OS-specific separator for PATH like environment variables:
index b69169bc79f2ca6e2e0cd1e9c73a8dd1404b197e..a23faf65bb596f8f873b60d4e304d49a1b7b2086 100644 (file)
@@ -24,7 +24,7 @@
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/YAMLParser.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 namespace llvm {
 namespace yaml {
diff --git a/include/llvm/Support/system_error.h b/include/llvm/Support/system_error.h
deleted file mode 100644 (file)
index 1b48ba9..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-//===---------------------------- system_error ------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This is a temporary file to help with the transition to std::error_code.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_SUPPORT_SYSTEM_ERROR_H
-#define LLVM_SUPPORT_SYSTEM_ERROR_H
-
-#include <system_error>
-
-namespace llvm {
-using std::error_code;
-}
-
-#endif
index 2606bc2d0832bb6f303b7ce2cddac79b2affd41d..ef9328a0b1c34297b02d9809b2fcaa51524dc22b 100644 (file)
@@ -17,8 +17,8 @@
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <cstring>
+#include <system_error>
 using namespace llvm;
 
 Module *llvm::ParseAssembly(MemoryBuffer *F,
index 65821caf85794c876f6ec817fd90fdf5069d46dd..485bd1c12ab43d8f10696f478f3ed46cf25565f8 100644 (file)
@@ -22,7 +22,7 @@
 #include "llvm/IR/OperandTraits.h"
 #include "llvm/IR/Type.h"
 #include "llvm/IR/ValueHandle.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 #include <vector>
 
 namespace llvm {
index 412cf20a5c7be9b0905233f6a999875db0ae60cb..4c7f0b52c72973346de5621ac612d587893791f0 100644 (file)
@@ -28,8 +28,8 @@
 #include "llvm/Support/Mutex.h"
 #include "llvm/Support/SwapByteOrder.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <map>
+#include <system_error>
 
 using namespace llvm;
 using namespace llvm::object;
index f24704c61cd833e6e726060b4fdeda4a7d2de137..db3128cfa07874f571e57d17375b77e9795b48f7 100644 (file)
@@ -17,9 +17,9 @@
 #include "llvm/IR/Attributes.h"
 #include "llvm/IR/CallSite.h"
 #include "llvm/IR/Constants.h"
+#include "llvm/IR/DerivedTypes.h"
 #include "llvm/IR/DiagnosticInfo.h"
 #include "llvm/IR/DiagnosticPrinter.h"
-#include "llvm/IR/DerivedTypes.h"
 #include "llvm/IR/GlobalAlias.h"
 #include "llvm/IR/GlobalVariable.h"
 #include "llvm/IR/IRBuilder.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Threading.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <cassert>
 #include <cstdlib>
 #include <cstring>
+#include <system_error>
 
 using namespace llvm;
 
index f2099d6baf132d6aef5608ddd8c879b815b7cf42..77dd7e881bd2b481092ac15914d7aa551601b06c 100644 (file)
@@ -19,8 +19,8 @@
 #include "llvm/Support/Format.h"
 #include "llvm/Support/MemoryObject.h"
 #include "llvm/Support/Path.h"
-#include "llvm/Support/system_error.h"
 #include <algorithm>
+#include <system_error>
 using namespace llvm;
 
 //===----------------------------------------------------------------------===//
index f4ed43769388abbf57069eb560df9341e6038d57..3e928d464245e212e862bed19f3ff14100caa91a 100644 (file)
@@ -18,7 +18,7 @@
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/Timer.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 using namespace llvm;
 
index 99236bd24eaafa3a3d92a3e93a2bb3d7d490db24..7c62e48bf5ff8aa50fc07f509924dd4c70de26bf 100644 (file)
@@ -44,7 +44,6 @@
 #include "llvm/Support/TargetSelect.h"
 #include "llvm/Support/ToolOutputFile.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include "llvm/Target/TargetLibraryInfo.h"
 #include "llvm/Target/TargetLowering.h"
 #include "llvm/Target/TargetOptions.h"
@@ -52,6 +51,7 @@
 #include "llvm/Transforms/IPO.h"
 #include "llvm/Transforms/IPO/PassManagerBuilder.h"
 #include "llvm/Transforms/ObjCARC.h"
+#include <system_error>
 using namespace llvm;
 
 const char* LTOCodeGenerator::getVersionString() {
index f7f6a3c4b8c2bac15942814c6dea8303f944ff73..9af79e5d854a3f4827c77647bded62f6b904d9f5 100644 (file)
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/TargetRegistry.h"
 #include "llvm/Support/TargetSelect.h"
-#include "llvm/Support/system_error.h"
 #include "llvm/Target/TargetLowering.h"
 #include "llvm/Target/TargetLoweringObjectFile.h"
 #include "llvm/Target/TargetRegisterInfo.h"
 #include "llvm/Transforms/Utils/GlobalStatus.h"
+#include <system_error>
 using namespace llvm;
 
 LTOModule::LTOModule(llvm::Module *m, llvm::TargetMachine *t)
index d30f0cca49c15c2cb9b40af7b37f261b524eb104..0be972e26b7eaf7a780b5d97a58b1ca1b87749f1 100644 (file)
@@ -16,7 +16,7 @@
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 using namespace llvm;
 using namespace object;
index 37bbf48303a6d0b0f71552cd2e5f149effbf0b10..b2bb7466c11237754af4633cc374864174d0cbe6 100644 (file)
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <cerrno>
 #include <cstdlib>
 #include <map>
+#include <system_error>
 using namespace llvm;
 using namespace cl;
 
index 299e6c57ae4d0f6ee1134961f3dfe3e4b69d2a8b..830bd8adb9b99501ea4caacc7d9bd67b6ee64b7d 100644 (file)
 #include "llvm/ADT/Statistic.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Program.h"
-#include "llvm/Support/system_error.h"
 #include <cerrno>
 #include <cstdio>
 #include <string>
+#include <system_error>
 #if !defined(_MSC_VER) && !defined(__MINGW32__)
 #include <unistd.h>
 #else
index c8ed1ddef656c9feca3079e7e9f636edfce14d41..96fa58767edd81cd6e52ec209aa1e936ce9c0a13 100644 (file)
@@ -14,7 +14,7 @@
 #include "llvm/Support/FileOutputBuffer.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 using llvm::sys::fs::mapped_file_region;
 
index b2dc47dc698a197fde88a06aa7709ae68808fedc..68953d347fe06567ff198e4514507924ba715c73 100644 (file)
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <cctype>
 #include <cstdlib>
 #include <cstring>
+#include <system_error>
 using namespace llvm;
 
 static bool isSignedChar(char C) {
index ab554cbfd538a438ef54f15d6df7b1bdd9eb49b4..0164443ad5fdb20f48a4d7adef60f26c6cde6358 100644 (file)
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Process.h"
 #include "llvm/Support/Program.h"
-#include "llvm/Support/system_error.h"
 #include <cassert>
 #include <cerrno>
 #include <cstdio>
 #include <cstring>
 #include <new>
 #include <sys/types.h>
+#include <system_error>
 #if !defined(_MSC_VER) && !defined(__MINGW32__)
 #include <unistd.h>
 #else
index 913c0997911ef8461057082d3e1fe83d72a76d77..eb700e3a8591a7ce12b1bae8e5ac989f2c7ec04f 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "llvm/Support/Program.h"
 #include "llvm/Config/config.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 using namespace llvm;
 using namespace sys;
 
index acd75fbbd19233e9832d667d7995a4bb74be285a..fc55451d5990b33c09492a154edb76c604413a04 100644 (file)
@@ -20,7 +20,7 @@
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 using namespace llvm;
 
 static const size_t TabStop = 8;
index 6bef44446023c8a8fe16a3c9e8801013c0ae9621..ca36812b78b4296191569a15555d77e6bd269ff1 100644 (file)
@@ -32,7 +32,7 @@
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Config/config.h" // Get build system configuration settings
 #include "llvm/Support/Compiler.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 #include <windows.h>
 #include <wincrypt.h>
 #include <cassert>
index f55838e660fef3efc4bafcb3bc44d7b3a9a56f4b..6a61b1b2a6ccc2b709c6b004b7a3a4051c1e2aa2 100644 (file)
 #include "llvm/Support/Format.h"
 #include "llvm/Support/Process.h"
 #include "llvm/Support/Program.h"
-#include "llvm/Support/system_error.h"
 #include <cctype>
 #include <cerrno>
 #include <sys/stat.h>
+#include <system_error>
 
 // <fcntl.h> may provide O_BINARY.
 #if defined(HAVE_FCNTL_H)
index 476026dfd7676e598d4d7d2b077acb30e283a30b..c932668fded799cd4c37c4e8e9367fb48e3e9d15 100644 (file)
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/ToolOutputFile.h"
-#include "llvm/Support/system_error.h"
 #include "llvm/TableGen/Error.h"
 #include "llvm/TableGen/Main.h"
 #include "llvm/TableGen/Record.h"
 #include <algorithm>
 #include <cstdio>
+#include <system_error>
 using namespace llvm;
 
 namespace {
index 980f2b106674b05ee2d6c041f8151fe592a411e4..e6e2d0620b11ad4b0a801e3bc2e9b67731fc85f1 100644 (file)
@@ -39,7 +39,6 @@
 #include "llvm/Support/DataTypes.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/Endian.h"
-#include "llvm/Support/system_error.h"
 #include "llvm/Transforms/Utils/ASanStackFrameLayout.h"
 #include "llvm/Transforms/Utils/BasicBlockUtils.h"
 #include "llvm/Transforms/Utils/Cloning.h"
@@ -48,6 +47,7 @@
 #include "llvm/Transforms/Utils/SpecialCaseList.h"
 #include <algorithm>
 #include <string>
+#include <system_error>
 
 using namespace llvm;
 
index 2c6fcd14b9e8d549a436b7a798507a37bbf98b6c..0a07b8f1ab5d1615c5b1c910134cc84539863396 100644 (file)
@@ -26,8 +26,8 @@
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Regex.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <string>
+#include <system_error>
 #include <utility>
 
 namespace llvm {
index 4726d82d69c15e55d05779fe14a6ee233d9360c0..f6b3435e2fecae3df448a6784228308cd2bf0963 100644 (file)
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Program.h"
 #include "llvm/Support/ToolOutputFile.h"
-#include "llvm/Support/system_error.h"
 #include <cerrno>
 #include <cstdlib>
 #include <cstring>
 #include <fstream>
 #include <list>
 #include <plugin-api.h>
+#include <system_error>
 #include <vector>
 
 // Support Windows/MinGW crazyness.
index dfdaa031636bc07bbcbe2a65081b2171ee6446f7..d1c3525bb6a0afad590fc045abdae663aa753f23 100644 (file)
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <algorithm>
 #include <cctype>
 #include <map>
+#include <system_error>
 using namespace llvm;
 
 static cl::opt<std::string>
index f15b9a026565c53d655d2bfe51df82741618e974..0917acd4110ce87cc1f3bd16c39b753d98b1c0c5 100644 (file)
@@ -20,7 +20,7 @@
 #include "llvm/Support/Path.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 using namespace llvm;
 
 static cl::opt<std::string> SourceFile(cl::Positional, cl::Required,
index 0df7328ffc348ca9dec058e6ee1c52886d4b9fbb..3a3936934f0a8ce6935ee9ea249b9239bf888e57 100644 (file)
@@ -32,7 +32,7 @@
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/ToolOutputFile.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 using namespace llvm;
 
 static cl::opt<std::string>
index 46ac36e1739b4c5522febd4b82753131a1918805..1876362b77f6a97b4c1481f17f3abd04f11d4716 100644 (file)
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <algorithm>
 #include <cstring>
 #include <list>
 #include <string>
+#include <system_error>
 
 using namespace llvm;
 using namespace object;
index f3a3e45fdd3e1ef328951d5ae12ff27ac8a94a00..7eb14d22a9dbb1c45988a5a9285cefd904ce33ee 100644 (file)
@@ -19,7 +19,7 @@
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 using namespace llvm;
 
 static cl::list<std::string>
index 0fd43532ed165629b774898806dc75b63479b6f2..ec7b29824b470b39a2d4da6fd7d463c48bff4642 100644 (file)
 #include "llvm/Support/Program.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <algorithm>
 #include <cctype>
 #include <cerrno>
 #include <cstring>
+#include <system_error>
 #include <vector>
 using namespace llvm;
 using namespace object;
index 49f27553c13abcab1b1b0e9aecea0f0372f4d220..7a0fa6e151b1246b18b9f40179f60a26ac3190ba 100644 (file)
@@ -22,9 +22,9 @@
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/Win64EH.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <algorithm>
 #include <cstring>
+#include <system_error>
 
 using namespace llvm;
 using namespace object;
index 3ca582fdab168d2ba76e257e62daab0612584d76..eaad96cc78fe57b4f11fc9169790ab66412c9e6d 100644 (file)
@@ -37,9 +37,9 @@
 #include "llvm/Support/TargetRegistry.h"
 #include "llvm/Support/TargetSelect.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <algorithm>
 #include <cstring>
+#include <system_error>
 using namespace llvm;
 using namespace object;
 
index a4fc6d0e33f8352f3e1b2066de231fb4f8dd3014..974a83721e5dded7c5cc0071be626819faa82cb9 100644 (file)
 #include "llvm/Support/TargetRegistry.h"
 #include "llvm/Support/TargetSelect.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <algorithm>
 #include <cctype>
 #include <cstring>
+#include <system_error>
 
 using namespace llvm;
 using namespace object;
index a0b185f04fdb047630fd58b8d454885fb42d96d1..77289484cf895b50e95da87f14b756eb006eb6cb 100644 (file)
 //===----------------------------------------------------------------------===//
 
 #include "llvm-readobj.h"
+#include "ARMWinEHPrinter.h"
 #include "Error.h"
 #include "ObjDumper.h"
 #include "StreamWriter.h"
-#include "ARMWinEHPrinter.h"
 #include "Win64EHDumper.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallString.h"
@@ -30,9 +30,9 @@
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/Win64EH.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <algorithm>
 #include <cstring>
+#include <system_error>
 #include <time.h>
 
 using namespace llvm;
index b4ffb82efcd688433bf2f2717f392855936d8c41..b9b7e526b9e84a4e7b60715d121a3e5b4c5ed515 100644 (file)
 #ifndef LLVM_READOBJ_ERROR_H
 #define LLVM_READOBJ_ERROR_H
 
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 namespace llvm {
-
+using std::error_code;
 const std::error_category &readobj_category();
 
 enum class readobj_error {
index 0c7eb5109f8f968142fa526ce381134cecb9ba1e..3e8194bffed0da73740262f9553bdcd03c0ab947 100644 (file)
 #ifndef LLVM_READOBJ_OBJDUMPER_H
 #define LLVM_READOBJ_OBJDUMPER_H
 
-#include "llvm/Support/system_error.h"
-
 #include <memory>
+#include <system_error>
 
 namespace llvm {
-
+using std::error_code;
 namespace object {
   class ObjectFile;
 }
index 5be959f85c11c8450c8f459047870500a8986e38..900f17b3c1487635a9f2e72d1c9498f2d21e00b2 100644 (file)
@@ -35,8 +35,8 @@
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/TargetRegistry.h"
 #include "llvm/Support/TargetSelect.h"
-#include "llvm/Support/system_error.h"
 #include <string>
+#include <system_error>
 
 
 using namespace llvm;
index be5c345c617504cccf1c5b2b587d91a8913cace4..df6d535c4307bdfa93278f8072f33e080f2f614f 100644 (file)
@@ -25,7 +25,7 @@
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 using namespace llvm;
 using namespace llvm::object;
 
index 58eafd4cba3d2023c0394a40cad6253f5c9ce751..ff3b88e3169f530e57f6d5a0b07729ae26c847e0 100644 (file)
@@ -25,9 +25,9 @@
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <algorithm>
 #include <string>
+#include <system_error>
 using namespace llvm;
 using namespace object;
 
index 886487bfb43e792d44203149c89a558f4de3c0dc..e7575f0056f0ed2bef16d1872519d081ccb36d26 100644 (file)
@@ -20,7 +20,7 @@
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 using namespace llvm;
 using namespace llvm::object;
 
index b4d13ba7d03a82317c89e1ef46d3ef328810f416..b91bfbb33c095879fee52ecffa0a88e1c7ee2161 100644 (file)
 #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 {
index 19476f78f42884f9bd678157e9c46238a56a3653..6d81110f7a38c41c5ba427263362869ffd60bead 100644 (file)
@@ -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);
index eef9c841f3e42abcf5c77c7349ebf042664e8403..dd41951e7db8924dd8b928be6409ddd12bccd08e 100644 (file)
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
-#include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include "llvm/Support/ToolOutputFile.h"
 #include "llvm/Support/YAMLTraits.h"
+#include "llvm/Support/raw_ostream.h"
+#include <system_error>
 
 using namespace llvm;
 
index 74c708236d61cbcec24b7e5f008a30adb5b80741..a5ec07f9550d66e2fe429d21df1940520faef807 100644 (file)
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include <algorithm>
 #include <cctype>
 #include <map>
 #include <string>
+#include <system_error>
 #include <vector>
 using namespace llvm;
 
index 1bf1248f65e0b1debc2f79ab64776c324c65d8e0..9e494bfca6f2c4f2f1f85d664a65cb384c9af2f8 100644 (file)
@@ -19,7 +19,7 @@
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
 #include "llvm/Support/ToolOutputFile.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 using namespace llvm;
 
 static cl::opt<bool>
index 2b66066b43a591f95b00b3626b2d1821db751fbc..619fd3ff1ba87f985e317447aad5ea0113b49f8d 100644 (file)
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
+#include "llvm/Support/WindowsError.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
 #include "llvm/Support/type_traits.h"
-#include "llvm/Support/WindowsError.h"
 #include <algorithm>
 #include <cerrno>
 #include <cstdlib>
 #include <map>
 #include <string>
+#include <system_error>
 
 // These includes must be last.
 #include <Windows.h>
index 58b73568628931db2fb89b759b66271d8b02ef5e..39b8f72ecc507d8bd6f453ebe3493832509576ab 100644 (file)
@@ -21,7 +21,7 @@
 #include "llvm/Support/Timer.h"
 #include "llvm/Support/YAMLParser.h"
 #include "llvm/Support/raw_ostream.h"
-#include "llvm/Support/system_error.h"
+#include <system_error>
 
 using namespace llvm;