forked from OSchip/llvm-project
Move Simple.h and Alias.h to include/Core.
Because the files in Core actually depend on these files. Differential Revision: http://reviews.llvm.org/D4000 llvm-svn: 210710
This commit is contained in:
parent
4dc958777c
commit
e05d380486
|
@ -1,4 +1,4 @@
|
|||
//===- lld/ReaderWriter/Alias.h - Alias atoms -----------------------------===//
|
||||
//===- lld/Core/Alias.h - Alias atoms -------------------------------------===//
|
||||
//
|
||||
// The LLVM Linker
|
||||
//
|
||||
|
@ -12,11 +12,11 @@
|
|||
///
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLD_READER_WRITER_ALIAS_H
|
||||
#define LLD_READER_WRITER_ALIAS_H
|
||||
#ifndef LLD_CORE_ALIAS_H
|
||||
#define LLD_CORE_ALIAS_H
|
||||
|
||||
#include "lld/Core/LLVM.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "llvm/ADT/Optional.h"
|
||||
|
||||
#include <string>
|
|
@ -1,4 +1,4 @@
|
|||
//===- lld/ReaderWriter/Simple.h - Simple implementations of Atom and File ===//
|
||||
//===- lld/Core/Simple.h - Simple implementations of Atom and File --------===//
|
||||
//
|
||||
// The LLVM Linker
|
||||
//
|
||||
|
@ -12,8 +12,8 @@
|
|||
///
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLD_READER_WRITER_SIMPLE_H
|
||||
#define LLD_READER_WRITER_SIMPLE_H
|
||||
#ifndef LLD_CORE_SIMPLE_H
|
||||
#define LLD_CORE_SIMPLE_H
|
||||
|
||||
#include "lld/Core/DefinedAtom.h"
|
||||
#include "lld/Core/File.h"
|
||||
|
@ -21,6 +21,7 @@
|
|||
#include "lld/Core/UndefinedAtom.h"
|
||||
|
||||
namespace lld {
|
||||
|
||||
class SimpleFile : public MutableFile {
|
||||
public:
|
||||
SimpleFile(StringRef path) : MutableFile(path) {}
|
||||
|
@ -197,6 +198,7 @@ private:
|
|||
const File &_file;
|
||||
StringRef _name;
|
||||
};
|
||||
|
||||
} // end namespace lld
|
||||
|
||||
#endif
|
|
@ -7,10 +7,10 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "lld/Core/Alias.h"
|
||||
#include "lld/Core/LinkingContext.h"
|
||||
#include "lld/Core/Resolver.h"
|
||||
#include "lld/ReaderWriter/Alias.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "lld/ReaderWriter/Writer.h"
|
||||
#include "llvm/ADT/Triple.h"
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "lld/Core/Instrumentation.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "lld/Passes/RoundTripNativePass.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/ReaderWriter/Writer.h"
|
||||
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
|
|
@ -6,9 +6,10 @@
|
|||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "lld/Core/Instrumentation.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "lld/Passes/RoundTripYAMLPass.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/ReaderWriter/Writer.h"
|
||||
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
#include "lld/Core/Pass.h"
|
||||
#include "lld/Core/PassManager.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "lld/Passes/LayoutPass.h"
|
||||
#include "lld/Passes/RoundTripYAMLPass.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "TargetHandler.h"
|
||||
|
||||
#include "lld/Core/LLVM.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/StringSwitch.h"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "lld/Core/File.h"
|
||||
#include "lld/Core/Pass.h"
|
||||
#include "lld/Core/PassManager.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "X86_64RelocationPass.h"
|
||||
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "X86_64RelocationHandler.h"
|
||||
#include "TargetLayout.h"
|
||||
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
|
||||
namespace lld {
|
||||
namespace elf {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#ifndef LLD_READER_WRITER_MACHO_ATOMS_H
|
||||
#define LLD_READER_WRITER_MACHO_ATOMS_H
|
||||
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
|
||||
namespace lld {
|
||||
namespace mach_o {
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
#include "llvm/Support/MachO.h"
|
||||
|
||||
#include "lld/Core/DefinedAtom.h"
|
||||
#include "lld/Core/UndefinedAtom.h"
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/Core/Reference.h"
|
||||
#include "lld/Core/LinkingContext.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Reference.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "lld/Core/UndefinedAtom.h"
|
||||
|
||||
namespace lld {
|
||||
namespace mach_o {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include "Atoms.h"
|
||||
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
|
||||
namespace lld {
|
||||
namespace mach_o {
|
||||
|
|
|
@ -13,10 +13,10 @@
|
|||
#include "llvm/ADT/ArrayRef.h"
|
||||
|
||||
#include "lld/Core/DefinedAtom.h"
|
||||
#include "lld/Core/SharedLibraryAtom.h"
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/Core/Reference.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/SharedLibraryAtom.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
|
||||
#include "ReferenceKinds.h"
|
||||
#include "StubAtoms_x86_64.hpp"
|
||||
|
|
|
@ -13,11 +13,11 @@
|
|||
#include "llvm/ADT/DenseMap.h"
|
||||
|
||||
#include "lld/Core/DefinedAtom.h"
|
||||
#include "lld/Core/SharedLibraryAtom.h"
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/Core/Reference.h"
|
||||
#include "lld/Core/Pass.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Reference.h"
|
||||
#include "lld/Core/SharedLibraryAtom.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
|
||||
#include "ReferenceKinds.h"
|
||||
#include "StubAtoms.hpp"
|
||||
|
|
|
@ -9,12 +9,11 @@
|
|||
|
||||
#include "NativeFileFormat.h"
|
||||
|
||||
#include "lld/ReaderWriter/Reader.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
|
||||
#include "lld/Core/Atom.h"
|
||||
#include "lld/Core/Error.h"
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "lld/ReaderWriter/Reader.h"
|
||||
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#define LLD_READER_WRITER_PE_COFF_ATOMS_H
|
||||
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/Object/COFF.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/Core/Pass.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/Core/Pass.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "lld/ReaderWriter/PECOFFLinkingContext.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "llvm/Support/COFF.h"
|
||||
|
||||
#include <map>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/Core/Pass.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "llvm/Support/COFF.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/Endian.h"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/Core/Pass.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "llvm/Support/COFF.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
#include "Atoms.h"
|
||||
|
||||
#include "lld/Core/ArchiveLibraryFile.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "lld/ReaderWriter/PECOFFLinkingContext.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "llvm/Support/Allocator.h"
|
||||
|
||||
#include <mutex>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/Core/Pass.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "llvm/Object/COFF.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/Core/Pass.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "lld/ReaderWriter/PECOFFLinkingContext.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
#include "SetSubsystemPass.h"
|
||||
|
||||
#include "lld/Core/PassManager.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "lld/Passes/LayoutPass.h"
|
||||
#include "lld/Passes/RoundTripNativePass.h"
|
||||
#include "lld/Passes/RoundTripYAMLPass.h"
|
||||
#include "lld/ReaderWriter/PECOFFLinkingContext.h"
|
||||
#include "lld/ReaderWriter/Reader.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/ReaderWriter/Writer.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/Support/Allocator.h"
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
#include "Atoms.h"
|
||||
#include "ReaderImportHeader.h"
|
||||
|
||||
#include "lld/Core/Alias.h"
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/Driver/Driver.h"
|
||||
#include "lld/ReaderWriter/PECOFFLinkingContext.h"
|
||||
#include "lld/ReaderWriter/Alias.h"
|
||||
#include "lld/ReaderWriter/Reader.h"
|
||||
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
|
|
|
@ -7,17 +7,16 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "lld/ReaderWriter/Reader.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/ReaderWriter/Writer.h"
|
||||
#include "lld/ReaderWriter/YamlContext.h"
|
||||
|
||||
#include "lld/Core/ArchiveLibraryFile.h"
|
||||
#include "lld/Core/DefinedAtom.h"
|
||||
#include "lld/Core/Error.h"
|
||||
#include "lld/Core/File.h"
|
||||
#include "lld/Core/LLVM.h"
|
||||
#include "lld/Core/Reference.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
#include "lld/ReaderWriter/Reader.h"
|
||||
#include "lld/ReaderWriter/Writer.h"
|
||||
#include "lld/ReaderWriter/YamlContext.h"
|
||||
|
||||
#include "llvm/ADT/ArrayRef.h"
|
||||
#include "llvm/ADT/StringMap.h"
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#include "lld/Core/InputGraph.h"
|
||||
#include "lld/Core/Resolver.h"
|
||||
#include "lld/ReaderWriter/Simple.h"
|
||||
#include "lld/Core/Simple.h"
|
||||
|
||||
using namespace lld;
|
||||
|
||||
|
|
Loading…
Reference in New Issue