[ELF] Don't rely on Symbols.h's transitive inclusion of InputFiles.h. NFC

This commit is contained in:
Fangrui Song 2022-02-23 20:44:34 -08:00
parent af6e66f44c
commit 38fbedab32
15 changed files with 20 additions and 0 deletions

View File

@ -26,6 +26,7 @@
//===----------------------------------------------------------------------===//
#include "AArch64ErrataFix.h"
#include "InputFiles.h"
#include "LinkerScript.h"
#include "OutputSections.h"
#include "Relocations.h"

View File

@ -14,6 +14,7 @@
//===----------------------------------------------------------------------===//
#include "ARMErrataFix.h"
#include "InputFiles.h"
#include "LinkerScript.h"
#include "OutputSections.h"
#include "Relocations.h"

View File

@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "InputFiles.h"
#include "Symbols.h"
#include "Target.h"
#include "lld/Common/ErrorHandler.h"

View File

@ -25,6 +25,7 @@
//
//===----------------------------------------------------------------------===//
#include "InputFiles.h"
#include "Symbols.h"
#include "Target.h"
#include "lld/Common/ErrorHandler.h"

View File

@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "InputFiles.h"
#include "Symbols.h"
#include "SyntheticSections.h"
#include "Target.h"

View File

@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "InputFiles.h"
#include "OutputSections.h"
#include "Symbols.h"
#include "SyntheticSections.h"

View File

@ -10,6 +10,7 @@
//
//===---------------------------------------------------------------------===//
#include "InputFiles.h"
#include "SymbolTable.h"
#include "Writer.h"

View File

@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "InputFiles.h"
#include "SymbolTable.h"
#include "Symbols.h"
#include "SyntheticSections.h"

View File

@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "InputFiles.h"
#include "Symbols.h"
#include "SyntheticSections.h"
#include "Target.h"

View File

@ -41,6 +41,7 @@
//===----------------------------------------------------------------------===//
#include "CallGraphSort.h"
#include "InputFiles.h"
#include "InputSection.h"
#include "Symbols.h"
#include "llvm/Support/FileSystem.h"

View File

@ -20,6 +20,7 @@
//===----------------------------------------------------------------------===//
#include "MarkLive.h"
#include "InputFiles.h"
#include "InputSection.h"
#include "LinkerScript.h"
#include "SymbolTable.h"

View File

@ -42,6 +42,7 @@
#include "Relocations.h"
#include "Config.h"
#include "InputFiles.h"
#include "LinkerScript.h"
#include "OutputSections.h"
#include "SymbolTable.h"

View File

@ -15,6 +15,7 @@
#include "SymbolTable.h"
#include "Config.h"
#include "InputFiles.h"
#include "Symbols.h"
#include "lld/Common/ErrorHandler.h"
#include "lld/Common/Memory.h"

View File

@ -13,6 +13,7 @@
#ifndef LLD_ELF_SYMBOLS_H
#define LLD_ELF_SYMBOLS_H
#include "Config.h"
#include "InputFiles.h"
#include "lld/Common/LLVM.h"
#include "lld/Common/Memory.h"
@ -21,6 +22,9 @@
#include <tuple>
namespace lld {
namespace elf {
class Symbol;
}
// Returns a string representation for a symbol for diagnostics.
std::string toString(const elf::Symbol &);
@ -29,9 +33,11 @@ class CommonSymbol;
class Defined;
class OutputSection;
class SectionBase;
class InputSectionBase;
class SharedSymbol;
class Symbol;
class Undefined;
class InputFile;
// Some index properties of a symbol are stored separately in this auxiliary
// struct to decrease sizeof(SymbolUnion) in the majority of cases.

View File

@ -22,6 +22,7 @@
#include "Thunks.h"
#include "Config.h"
#include "InputFiles.h"
#include "InputSection.h"
#include "OutputSections.h"
#include "Symbols.h"