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.

llvm-svn: 210803
This commit is contained in:
Rafael Espindola 2014-06-12 17:38:55 +00:00
parent 8a8e554adc
commit a6e9c3e43a
58 changed files with 74 additions and 92 deletions

View File

@ -18,10 +18,10 @@
#ifndef LLVM_IR_GVMATERIALIZER_H #ifndef LLVM_IR_GVMATERIALIZER_H
#define LLVM_IR_GVMATERIALIZER_H #define LLVM_IR_GVMATERIALIZER_H
#include "llvm/Support/system_error.h" #include <system_error>
namespace llvm { namespace llvm {
using std::error_code;
class Function; class Function;
class GlobalValue; class GlobalValue;
class Module; class Module;

View File

@ -23,7 +23,7 @@
#include "llvm/IR/Metadata.h" #include "llvm/IR/Metadata.h"
#include "llvm/Support/CBindingWrapping.h" #include "llvm/Support/CBindingWrapping.h"
#include "llvm/Support/DataTypes.h" #include "llvm/Support/DataTypes.h"
#include "llvm/Support/system_error.h" #include <system_error>
namespace llvm { namespace llvm {

View File

@ -14,9 +14,10 @@
#ifndef LLVM_OBJECT_ERROR_H #ifndef LLVM_OBJECT_ERROR_H
#define LLVM_OBJECT_ERROR_H #define LLVM_OBJECT_ERROR_H
#include "llvm/Support/system_error.h" #include <system_error>
namespace llvm { namespace llvm {
using std::error_code;
namespace object { namespace object {
const std::error_category &object_category(); const std::error_category &object_category();

View File

@ -16,10 +16,10 @@
#ifndef LLVM_PROFILEDATA_INSTRPROF_H_ #ifndef LLVM_PROFILEDATA_INSTRPROF_H_
#define LLVM_PROFILEDATA_INSTRPROF_H_ #define LLVM_PROFILEDATA_INSTRPROF_H_
#include "llvm/Support/system_error.h" #include <system_error>
namespace llvm { namespace llvm {
using std::error_code;
const std::error_category &instrprof_category(); const std::error_category &instrprof_category();
enum class instrprof_error { enum class instrprof_error {

View File

@ -18,11 +18,12 @@
#include "llvm/ADT/PointerIntPair.h" #include "llvm/ADT/PointerIntPair.h"
#include "llvm/Support/AlignOf.h" #include "llvm/Support/AlignOf.h"
#include "llvm/Support/system_error.h"
#include <cassert> #include <cassert>
#include <system_error>
#include <type_traits> #include <type_traits>
namespace llvm { namespace llvm {
using std::error_code;
template<class T, class V> template<class T, class V>
typename std::enable_if< std::is_constructible<T, V>::value typename std::enable_if< std::is_constructible<T, V>::value
, typename std::remove_reference<V>::type>::type && , typename std::remove_reference<V>::type>::type &&

View File

@ -33,11 +33,11 @@
#include "llvm/Support/DataTypes.h" #include "llvm/Support/DataTypes.h"
#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/TimeValue.h" #include "llvm/Support/TimeValue.h"
#include "llvm/Support/system_error.h"
#include <ctime> #include <ctime>
#include <iterator> #include <iterator>
#include <stack> #include <stack>
#include <string> #include <string>
#include <system_error>
#include <tuple> #include <tuple>
#include <vector> #include <vector>
@ -46,6 +46,7 @@
#endif #endif
namespace llvm { namespace llvm {
using std::error_code;
namespace sys { namespace sys {
namespace fs { namespace fs {

View File

@ -12,11 +12,11 @@
#include "llvm/ADT/Optional.h" #include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include "llvm/Support/system_error.h" #include <system_error>
#include <utility> // for std::pair #include <utility> // for std::pair
namespace llvm { namespace llvm {
using std::error_code;
/// \brief Class that manages the creation of a lock file to aid /// \brief Class that manages the creation of a lock file to aid
/// implicit coordination between different processes. /// implicit coordination between different processes.
/// ///

View File

@ -15,10 +15,11 @@
#define LLVM_SUPPORT_MEMORY_H #define LLVM_SUPPORT_MEMORY_H
#include "llvm/Support/DataTypes.h" #include "llvm/Support/DataTypes.h"
#include "llvm/Support/system_error.h"
#include <string> #include <string>
#include <system_error>
namespace llvm { namespace llvm {
using std::error_code;
namespace sys { namespace sys {
/// This class encapsulates the notion of a memory block which has an address /// This class encapsulates the notion of a memory block which has an address

View File

@ -19,10 +19,11 @@
#include "llvm/Support/CBindingWrapping.h" #include "llvm/Support/CBindingWrapping.h"
#include "llvm/Support/Compiler.h" #include "llvm/Support/Compiler.h"
#include "llvm/Support/DataTypes.h" #include "llvm/Support/DataTypes.h"
#include "llvm/Support/system_error.h"
#include <memory> #include <memory>
#include <system_error>
namespace llvm { namespace llvm {
using std::error_code;
/// MemoryBuffer - This interface provides simple read-only access to a block /// MemoryBuffer - This interface provides simple read-only access to a block
/// of memory, and provides simple methods for reading files and standard input /// 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 /// into a memory buffer. In addition to basic access to the characters in the

View File

@ -31,7 +31,7 @@
#include "llvm/Support/Allocator.h" #include "llvm/Support/Allocator.h"
#include "llvm/Support/DataTypes.h" #include "llvm/Support/DataTypes.h"
#include "llvm/Support/TimeValue.h" #include "llvm/Support/TimeValue.h"
#include "llvm/Support/system_error.h" #include <system_error>
namespace llvm { namespace llvm {
class StringRef; class StringRef;

View File

@ -16,9 +16,10 @@
#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/Path.h" #include "llvm/Support/Path.h"
#include "llvm/Support/system_error.h" #include <system_error>
namespace llvm { namespace llvm {
using std::error_code;
namespace sys { namespace sys {
/// This is the OS-specific separator for PATH like environment variables: /// This is the OS-specific separator for PATH like environment variables:

View File

@ -24,7 +24,7 @@
#include "llvm/Support/SourceMgr.h" #include "llvm/Support/SourceMgr.h"
#include "llvm/Support/YAMLParser.h" #include "llvm/Support/YAMLParser.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h" #include <system_error>
namespace llvm { namespace llvm {
namespace yaml { namespace yaml {

View File

@ -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

View File

@ -17,8 +17,8 @@
#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h" #include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <cstring> #include <cstring>
#include <system_error>
using namespace llvm; using namespace llvm;
Module *llvm::ParseAssembly(MemoryBuffer *F, Module *llvm::ParseAssembly(MemoryBuffer *F,

View File

@ -22,7 +22,7 @@
#include "llvm/IR/OperandTraits.h" #include "llvm/IR/OperandTraits.h"
#include "llvm/IR/Type.h" #include "llvm/IR/Type.h"
#include "llvm/IR/ValueHandle.h" #include "llvm/IR/ValueHandle.h"
#include "llvm/Support/system_error.h" #include <system_error>
#include <vector> #include <vector>
namespace llvm { namespace llvm {

View File

@ -28,8 +28,8 @@
#include "llvm/Support/Mutex.h" #include "llvm/Support/Mutex.h"
#include "llvm/Support/SwapByteOrder.h" #include "llvm/Support/SwapByteOrder.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <map> #include <map>
#include <system_error>
using namespace llvm; using namespace llvm;
using namespace llvm::object; using namespace llvm::object;

View File

@ -17,9 +17,9 @@
#include "llvm/IR/Attributes.h" #include "llvm/IR/Attributes.h"
#include "llvm/IR/CallSite.h" #include "llvm/IR/CallSite.h"
#include "llvm/IR/Constants.h" #include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/DiagnosticInfo.h" #include "llvm/IR/DiagnosticInfo.h"
#include "llvm/IR/DiagnosticPrinter.h" #include "llvm/IR/DiagnosticPrinter.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/GlobalAlias.h" #include "llvm/IR/GlobalAlias.h"
#include "llvm/IR/GlobalVariable.h" #include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/IRBuilder.h" #include "llvm/IR/IRBuilder.h"
@ -35,10 +35,10 @@
#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Threading.h" #include "llvm/Support/Threading.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <cassert> #include <cassert>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <system_error>
using namespace llvm; using namespace llvm;

View File

@ -19,8 +19,8 @@
#include "llvm/Support/Format.h" #include "llvm/Support/Format.h"
#include "llvm/Support/MemoryObject.h" #include "llvm/Support/MemoryObject.h"
#include "llvm/Support/Path.h" #include "llvm/Support/Path.h"
#include "llvm/Support/system_error.h"
#include <algorithm> #include <algorithm>
#include <system_error>
using namespace llvm; using namespace llvm;
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//

View File

@ -18,7 +18,7 @@
#include "llvm/Support/SourceMgr.h" #include "llvm/Support/SourceMgr.h"
#include "llvm/Support/Timer.h" #include "llvm/Support/Timer.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h" #include <system_error>
using namespace llvm; using namespace llvm;

View File

@ -44,7 +44,6 @@
#include "llvm/Support/TargetSelect.h" #include "llvm/Support/TargetSelect.h"
#include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/ToolOutputFile.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include "llvm/Target/TargetLibraryInfo.h" #include "llvm/Target/TargetLibraryInfo.h"
#include "llvm/Target/TargetLowering.h" #include "llvm/Target/TargetLowering.h"
#include "llvm/Target/TargetOptions.h" #include "llvm/Target/TargetOptions.h"
@ -52,6 +51,7 @@
#include "llvm/Transforms/IPO.h" #include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h"
#include "llvm/Transforms/ObjCARC.h" #include "llvm/Transforms/ObjCARC.h"
#include <system_error>
using namespace llvm; using namespace llvm;
const char* LTOCodeGenerator::getVersionString() { const char* LTOCodeGenerator::getVersionString() {

View File

@ -37,11 +37,11 @@
#include "llvm/Support/SourceMgr.h" #include "llvm/Support/SourceMgr.h"
#include "llvm/Support/TargetRegistry.h" #include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h" #include "llvm/Support/TargetSelect.h"
#include "llvm/Support/system_error.h"
#include "llvm/Target/TargetLowering.h" #include "llvm/Target/TargetLowering.h"
#include "llvm/Target/TargetLoweringObjectFile.h" #include "llvm/Target/TargetLoweringObjectFile.h"
#include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Transforms/Utils/GlobalStatus.h" #include "llvm/Transforms/Utils/GlobalStatus.h"
#include <system_error>
using namespace llvm; using namespace llvm;
LTOModule::LTOModule(llvm::Module *m, llvm::TargetMachine *t) LTOModule::LTOModule(llvm::Module *m, llvm::TargetMachine *t)

View File

@ -16,7 +16,7 @@
#include "llvm/Support/FileSystem.h" #include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h" #include <system_error>
using namespace llvm; using namespace llvm;
using namespace object; using namespace object;

View File

@ -31,10 +31,10 @@
#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h" #include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <cerrno> #include <cerrno>
#include <cstdlib> #include <cstdlib>
#include <map> #include <map>
#include <system_error>
using namespace llvm; using namespace llvm;
using namespace cl; using namespace cl;

View File

@ -18,10 +18,10 @@
#include "llvm/ADT/Statistic.h" #include "llvm/ADT/Statistic.h"
#include "llvm/Support/FileSystem.h" #include "llvm/Support/FileSystem.h"
#include "llvm/Support/Program.h" #include "llvm/Support/Program.h"
#include "llvm/Support/system_error.h"
#include <cerrno> #include <cerrno>
#include <cstdio> #include <cstdio>
#include <string> #include <string>
#include <system_error>
#if !defined(_MSC_VER) && !defined(__MINGW32__) #if !defined(_MSC_VER) && !defined(__MINGW32__)
#include <unistd.h> #include <unistd.h>
#else #else

View File

@ -14,7 +14,7 @@
#include "llvm/Support/FileOutputBuffer.h" #include "llvm/Support/FileOutputBuffer.h"
#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/SmallVector.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h" #include <system_error>
using llvm::sys::fs::mapped_file_region; using llvm::sys::fs::mapped_file_region;

View File

@ -17,10 +17,10 @@
#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h" #include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <cctype> #include <cctype>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <system_error>
using namespace llvm; using namespace llvm;
static bool isSignedChar(char C) { static bool isSignedChar(char C) {

View File

@ -20,13 +20,13 @@
#include "llvm/Support/Path.h" #include "llvm/Support/Path.h"
#include "llvm/Support/Process.h" #include "llvm/Support/Process.h"
#include "llvm/Support/Program.h" #include "llvm/Support/Program.h"
#include "llvm/Support/system_error.h"
#include <cassert> #include <cassert>
#include <cerrno> #include <cerrno>
#include <cstdio> #include <cstdio>
#include <cstring> #include <cstring>
#include <new> #include <new>
#include <sys/types.h> #include <sys/types.h>
#include <system_error>
#if !defined(_MSC_VER) && !defined(__MINGW32__) #if !defined(_MSC_VER) && !defined(__MINGW32__)
#include <unistd.h> #include <unistd.h>
#else #else

View File

@ -13,7 +13,7 @@
#include "llvm/Support/Program.h" #include "llvm/Support/Program.h"
#include "llvm/Config/config.h" #include "llvm/Config/config.h"
#include "llvm/Support/system_error.h" #include <system_error>
using namespace llvm; using namespace llvm;
using namespace sys; using namespace sys;

View File

@ -20,7 +20,7 @@
#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Path.h" #include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h" #include <system_error>
using namespace llvm; using namespace llvm;
static const size_t TabStop = 8; static const size_t TabStop = 8;

View File

@ -32,7 +32,7 @@
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include "llvm/Config/config.h" // Get build system configuration settings #include "llvm/Config/config.h" // Get build system configuration settings
#include "llvm/Support/Compiler.h" #include "llvm/Support/Compiler.h"
#include "llvm/Support/system_error.h" #include <system_error>
#include <windows.h> #include <windows.h>
#include <wincrypt.h> #include <wincrypt.h>
#include <cassert> #include <cassert>

View File

@ -22,10 +22,10 @@
#include "llvm/Support/Format.h" #include "llvm/Support/Format.h"
#include "llvm/Support/Process.h" #include "llvm/Support/Process.h"
#include "llvm/Support/Program.h" #include "llvm/Support/Program.h"
#include "llvm/Support/system_error.h"
#include <cctype> #include <cctype>
#include <cerrno> #include <cerrno>
#include <sys/stat.h> #include <sys/stat.h>
#include <system_error>
// <fcntl.h> may provide O_BINARY. // <fcntl.h> may provide O_BINARY.
#if defined(HAVE_FCNTL_H) #if defined(HAVE_FCNTL_H)

View File

@ -20,12 +20,12 @@
#include "llvm/Support/FileSystem.h" #include "llvm/Support/FileSystem.h"
#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/ToolOutputFile.h"
#include "llvm/Support/system_error.h"
#include "llvm/TableGen/Error.h" #include "llvm/TableGen/Error.h"
#include "llvm/TableGen/Main.h" #include "llvm/TableGen/Main.h"
#include "llvm/TableGen/Record.h" #include "llvm/TableGen/Record.h"
#include <algorithm> #include <algorithm>
#include <cstdio> #include <cstdio>
#include <system_error>
using namespace llvm; using namespace llvm;
namespace { namespace {

View File

@ -39,7 +39,6 @@
#include "llvm/Support/DataTypes.h" #include "llvm/Support/DataTypes.h"
#include "llvm/Support/Debug.h" #include "llvm/Support/Debug.h"
#include "llvm/Support/Endian.h" #include "llvm/Support/Endian.h"
#include "llvm/Support/system_error.h"
#include "llvm/Transforms/Utils/ASanStackFrameLayout.h" #include "llvm/Transforms/Utils/ASanStackFrameLayout.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Transforms/Utils/Cloning.h" #include "llvm/Transforms/Utils/Cloning.h"
@ -48,6 +47,7 @@
#include "llvm/Transforms/Utils/SpecialCaseList.h" #include "llvm/Transforms/Utils/SpecialCaseList.h"
#include <algorithm> #include <algorithm>
#include <string> #include <string>
#include <system_error>
using namespace llvm; using namespace llvm;

View File

@ -26,8 +26,8 @@
#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Regex.h" #include "llvm/Support/Regex.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <string> #include <string>
#include <system_error>
#include <utility> #include <utility>
namespace llvm { namespace llvm {

View File

@ -21,13 +21,13 @@
#include "llvm/Support/Path.h" #include "llvm/Support/Path.h"
#include "llvm/Support/Program.h" #include "llvm/Support/Program.h"
#include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/ToolOutputFile.h"
#include "llvm/Support/system_error.h"
#include <cerrno> #include <cerrno>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <fstream> #include <fstream>
#include <list> #include <list>
#include <plugin-api.h> #include <plugin-api.h>
#include <system_error>
#include <vector> #include <vector>
// Support Windows/MinGW crazyness. // Support Windows/MinGW crazyness.

View File

@ -38,10 +38,10 @@
#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Signals.h" #include "llvm/Support/Signals.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <map> #include <map>
#include <system_error>
using namespace llvm; using namespace llvm;
static cl::opt<std::string> static cl::opt<std::string>

View File

@ -20,7 +20,7 @@
#include "llvm/Support/Path.h" #include "llvm/Support/Path.h"
#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Signals.h" #include "llvm/Support/Signals.h"
#include "llvm/Support/system_error.h" #include <system_error>
using namespace llvm; using namespace llvm;
static cl::opt<std::string> SourceFile(cl::Positional, cl::Required, static cl::opt<std::string> SourceFile(cl::Positional, cl::Required,

View File

@ -32,7 +32,7 @@
#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Signals.h" #include "llvm/Support/Signals.h"
#include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/ToolOutputFile.h"
#include "llvm/Support/system_error.h" #include <system_error>
using namespace llvm; using namespace llvm;
static cl::opt<std::string> static cl::opt<std::string>

View File

@ -25,11 +25,11 @@
#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Signals.h" #include "llvm/Support/Signals.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <algorithm> #include <algorithm>
#include <cstring> #include <cstring>
#include <list> #include <list>
#include <string> #include <string>
#include <system_error>
using namespace llvm; using namespace llvm;
using namespace object; using namespace object;

View File

@ -19,7 +19,7 @@
#include "llvm/Support/Signals.h" #include "llvm/Support/Signals.h"
#include "llvm/Support/SourceMgr.h" #include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h" #include <system_error>
using namespace llvm; using namespace llvm;
static cl::list<std::string> static cl::list<std::string>

View File

@ -37,11 +37,11 @@
#include "llvm/Support/Program.h" #include "llvm/Support/Program.h"
#include "llvm/Support/Signals.h" #include "llvm/Support/Signals.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <cerrno> #include <cerrno>
#include <cstring> #include <cstring>
#include <system_error>
#include <vector> #include <vector>
using namespace llvm; using namespace llvm;
using namespace object; using namespace object;

View File

@ -22,9 +22,9 @@
#include "llvm/Support/SourceMgr.h" #include "llvm/Support/SourceMgr.h"
#include "llvm/Support/Win64EH.h" #include "llvm/Support/Win64EH.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <algorithm> #include <algorithm>
#include <cstring> #include <cstring>
#include <system_error>
using namespace llvm; using namespace llvm;
using namespace object; using namespace object;

View File

@ -37,9 +37,9 @@
#include "llvm/Support/TargetRegistry.h" #include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h" #include "llvm/Support/TargetSelect.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <algorithm> #include <algorithm>
#include <cstring> #include <cstring>
#include <system_error>
using namespace llvm; using namespace llvm;
using namespace object; using namespace object;

View File

@ -57,10 +57,10 @@
#include "llvm/Support/TargetRegistry.h" #include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h" #include "llvm/Support/TargetSelect.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <cstring> #include <cstring>
#include <system_error>
using namespace llvm; using namespace llvm;
using namespace object; using namespace object;

View File

@ -13,10 +13,10 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm-readobj.h" #include "llvm-readobj.h"
#include "ARMWinEHPrinter.h"
#include "Error.h" #include "Error.h"
#include "ObjDumper.h" #include "ObjDumper.h"
#include "StreamWriter.h" #include "StreamWriter.h"
#include "ARMWinEHPrinter.h"
#include "Win64EHDumper.h" #include "Win64EHDumper.h"
#include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallString.h"
@ -30,9 +30,9 @@
#include "llvm/Support/SourceMgr.h" #include "llvm/Support/SourceMgr.h"
#include "llvm/Support/Win64EH.h" #include "llvm/Support/Win64EH.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <algorithm> #include <algorithm>
#include <cstring> #include <cstring>
#include <system_error>
#include <time.h> #include <time.h>
using namespace llvm; using namespace llvm;

View File

@ -14,10 +14,10 @@
#ifndef LLVM_READOBJ_ERROR_H #ifndef LLVM_READOBJ_ERROR_H
#define LLVM_READOBJ_ERROR_H #define LLVM_READOBJ_ERROR_H
#include "llvm/Support/system_error.h" #include <system_error>
namespace llvm { namespace llvm {
using std::error_code;
const std::error_category &readobj_category(); const std::error_category &readobj_category();
enum class readobj_error { enum class readobj_error {

View File

@ -10,12 +10,11 @@
#ifndef LLVM_READOBJ_OBJDUMPER_H #ifndef LLVM_READOBJ_OBJDUMPER_H
#define LLVM_READOBJ_OBJDUMPER_H #define LLVM_READOBJ_OBJDUMPER_H
#include "llvm/Support/system_error.h"
#include <memory> #include <memory>
#include <system_error>
namespace llvm { namespace llvm {
using std::error_code;
namespace object { namespace object {
class ObjectFile; class ObjectFile;
} }

View File

@ -35,8 +35,8 @@
#include "llvm/Support/Signals.h" #include "llvm/Support/Signals.h"
#include "llvm/Support/TargetRegistry.h" #include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TargetSelect.h" #include "llvm/Support/TargetSelect.h"
#include "llvm/Support/system_error.h"
#include <string> #include <string>
#include <system_error>
using namespace llvm; using namespace llvm;

View File

@ -25,7 +25,7 @@
#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Signals.h" #include "llvm/Support/Signals.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h" #include <system_error>
using namespace llvm; using namespace llvm;
using namespace llvm::object; using namespace llvm::object;

View File

@ -25,9 +25,9 @@
#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Signals.h" #include "llvm/Support/Signals.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <algorithm> #include <algorithm>
#include <string> #include <string>
#include <system_error>
using namespace llvm; using namespace llvm;
using namespace object; using namespace object;

View File

@ -20,7 +20,7 @@
#include "llvm/Support/ManagedStatic.h" #include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h" #include <system_error>
using namespace llvm; using namespace llvm;
using namespace llvm::object; using namespace llvm::object;

View File

@ -10,10 +10,10 @@
#ifndef LLVM_TOOLS_ERROR_H #ifndef LLVM_TOOLS_ERROR_H
#define LLVM_TOOLS_ERROR_H #define LLVM_TOOLS_ERROR_H
#include "llvm/Support/system_error.h" #include <system_error>
namespace llvm { namespace llvm {
using std::error_code;
const std::error_category &obj2yaml_category(); const std::error_category &obj2yaml_category();
enum class obj2yaml_error { enum class obj2yaml_error {

View File

@ -15,7 +15,7 @@
#include "llvm/Object/COFF.h" #include "llvm/Object/COFF.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h" #include <system_error>
std::error_code coff2yaml(llvm::raw_ostream &Out, std::error_code coff2yaml(llvm::raw_ostream &Out,
const llvm::object::COFFObjectFile &Obj); const llvm::object::COFFObjectFile &Obj);

View File

@ -22,10 +22,10 @@
#include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Signals.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/ToolOutputFile.h"
#include "llvm/Support/YAMLTraits.h" #include "llvm/Support/YAMLTraits.h"
#include "llvm/Support/raw_ostream.h"
#include <system_error>
using namespace llvm; using namespace llvm;

View File

@ -27,11 +27,11 @@
#include "llvm/Support/Signals.h" #include "llvm/Support/Signals.h"
#include "llvm/Support/SourceMgr.h" #include "llvm/Support/SourceMgr.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h"
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <map> #include <map>
#include <string> #include <string>
#include <system_error>
#include <vector> #include <vector>
using namespace llvm; using namespace llvm;

View File

@ -19,7 +19,7 @@
#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Signals.h" #include "llvm/Support/Signals.h"
#include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/ToolOutputFile.h"
#include "llvm/Support/system_error.h" #include <system_error>
using namespace llvm; using namespace llvm;
static cl::opt<bool> static cl::opt<bool>

View File

@ -40,15 +40,15 @@
#include "llvm/Support/ManagedStatic.h" #include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/Signals.h" #include "llvm/Support/Signals.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 "llvm/Support/WindowsError.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/type_traits.h"
#include <algorithm> #include <algorithm>
#include <cerrno> #include <cerrno>
#include <cstdlib> #include <cstdlib>
#include <map> #include <map>
#include <string> #include <string>
#include <system_error>
// These includes must be last. // These includes must be last.
#include <Windows.h> #include <Windows.h>

View File

@ -21,7 +21,7 @@
#include "llvm/Support/Timer.h" #include "llvm/Support/Timer.h"
#include "llvm/Support/YAMLParser.h" #include "llvm/Support/YAMLParser.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Support/system_error.h" #include <system_error>
using namespace llvm; using namespace llvm;