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:
Rui Ueyama 2014-06-11 21:47:51 +00:00
parent 4dc958777c
commit e05d380486
28 changed files with 46 additions and 45 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -21,7 +21,7 @@
#include "X86_64RelocationPass.h"
#include "lld/ReaderWriter/Simple.h"
#include "lld/Core/Simple.h"
#include "llvm/ADT/DenseMap.h"

View File

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

View File

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

View File

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

View File

@ -12,7 +12,7 @@
#include "Atoms.h"
#include "lld/ReaderWriter/Simple.h"
#include "lld/Core/Simple.h"
namespace lld {
namespace mach_o {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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