Remove some includes from InputFiles.h.

They were not used in InputFiles.h and it was getting too easy to add
circular includes.

llvm-svn: 320256
This commit is contained in:
Rafael Espindola 2017-12-09 16:56:18 +00:00
parent d3e21c6b79
commit d26b52fd34
12 changed files with 14 additions and 3 deletions

View File

@ -35,12 +35,13 @@
#include "AArch64ErrataFix.h"
#include "Config.h"
#include "LinkerScript.h"
#include "lld/Common/Memory.h"
#include "OutputSections.h"
#include "Relocations.h"
#include "Strings.h"
#include "Symbols.h"
#include "SyntheticSections.h"
#include "Target.h"
#include "lld/Common/Memory.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/raw_ostream.h"

View File

@ -34,6 +34,7 @@
#include "ScriptParser.h"
#include "Strings.h"
#include "SymbolTable.h"
#include "Symbols.h"
#include "SyntheticSections.h"
#include "Target.h"
#include "Writer.h"

View File

@ -15,6 +15,7 @@
//===----------------------------------------------------------------------===//
#include "GdbIndex.h"
#include "Symbols.h"
#include "lld/Common/Memory.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugPubTable.h"
#include "llvm/Object/ELFObjectFile.h"

View File

@ -76,6 +76,7 @@
#include "ICF.h"
#include "Config.h"
#include "SymbolTable.h"
#include "Symbols.h"
#include "lld/Common/Threads.h"
#include "llvm/ADT/Hashing.h"
#include "llvm/BinaryFormat/ELF.h"

View File

@ -11,8 +11,6 @@
#define LLD_ELF_INPUT_FILES_H
#include "Config.h"
#include "InputSection.h"
#include "Symbols.h"
#include "lld/Common/ErrorHandler.h"
#include "lld/Common/LLVM.h"
@ -40,6 +38,7 @@ class InputFile;
namespace lld {
namespace elf {
class InputFile;
class InputSectionBase;
}
// Returns "<internal>", "foo.a(bar.o)" or "baz.o".

View File

@ -14,6 +14,7 @@
#include "LinkerScript.h"
#include "OutputSections.h"
#include "Relocations.h"
#include "Symbols.h"
#include "SyntheticSections.h"
#include "Target.h"
#include "Thunks.h"

View File

@ -25,6 +25,7 @@
#include "OutputSections.h"
#include "Strings.h"
#include "SymbolTable.h"
#include "Symbols.h"
#include "SyntheticSections.h"
#include "lld/Common/Threads.h"
#include "llvm/Support/raw_ostream.h"

View File

@ -47,6 +47,7 @@
#include "OutputSections.h"
#include "Strings.h"
#include "SymbolTable.h"
#include "Symbols.h"
#include "SyntheticSections.h"
#include "Target.h"
#include "Thunks.h"

View File

@ -18,6 +18,8 @@
namespace lld {
namespace elf {
class Defined;
class SectionBase;
// SymbolTable is a bucket of all known symbols, including defined,
// undefined, or lazy symbols (the last one is symbols in archive

View File

@ -22,6 +22,7 @@
#include "OutputSections.h"
#include "Strings.h"
#include "SymbolTable.h"
#include "Symbols.h"
#include "Target.h"
#include "Writer.h"
#include "lld/Common/ErrorHandler.h"

View File

@ -30,6 +30,7 @@
namespace lld {
namespace elf {
class SharedSymbol;
class SyntheticSection : public InputSection {
public:

View File

@ -17,6 +17,7 @@
#include "Relocations.h"
#include "Strings.h"
#include "SymbolTable.h"
#include "Symbols.h"
#include "SyntheticSections.h"
#include "Target.h"
#include "lld/Common/Memory.h"