Index: COFF/DLL.cpp =================================================================== --- COFF/DLL.cpp +++ COFF/DLL.cpp @@ -18,8 +18,8 @@ // //===----------------------------------------------------------------------===// -#include "Chunks.h" #include "DLL.h" +#include "Chunks.h" #include "llvm/Object/COFF.h" #include "llvm/Support/Endian.h" #include "llvm/Support/Path.h" Index: COFF/Driver.cpp =================================================================== --- COFF/Driver.cpp +++ COFF/Driver.cpp @@ -38,7 +38,6 @@ #include "llvm/ToolDrivers/llvm-lib/LibDriver.h" #include #include - #include using namespace llvm; Index: COFF/MapFile.cpp =================================================================== --- COFF/MapFile.cpp +++ COFF/MapFile.cpp @@ -23,7 +23,6 @@ #include "SymbolTable.h" #include "Symbols.h" #include "Writer.h" - #include "lld/Common/ErrorHandler.h" #include "llvm/Support/Parallel.h" #include "llvm/Support/raw_ostream.h" Index: ELF/AArch64ErrataFix.h =================================================================== --- ELF/AArch64ErrataFix.h +++ ELF/AArch64ErrataFix.h @@ -11,7 +11,6 @@ #define LLD_ELF_AARCH64ERRATAFIX_H #include "lld/Common/LLVM.h" - #include #include Index: ELF/AArch64ErrataFix.cpp =================================================================== --- ELF/AArch64ErrataFix.cpp +++ ELF/AArch64ErrataFix.cpp @@ -39,7 +39,6 @@ #include "SyntheticSections.h" #include "Target.h" #include "lld/Common/Memory.h" - #include "llvm/Support/Endian.h" #include "llvm/Support/raw_ostream.h" #include Index: ELF/Config.h =================================================================== --- ELF/Config.h +++ ELF/Config.h @@ -18,7 +18,6 @@ #include "llvm/Support/CachePruning.h" #include "llvm/Support/CodeGen.h" #include "llvm/Support/Endian.h" - #include namespace lld { Index: ELF/EhFrame.cpp =================================================================== --- ELF/EhFrame.cpp +++ ELF/EhFrame.cpp @@ -21,7 +21,6 @@ #include "InputSection.h" #include "Relocations.h" #include "Strings.h" - #include "lld/Common/ErrorHandler.h" #include "llvm/BinaryFormat/Dwarf.h" #include "llvm/Object/ELF.h" Index: ELF/InputFiles.h =================================================================== --- ELF/InputFiles.h +++ ELF/InputFiles.h @@ -12,7 +12,6 @@ #include "Config.h" #include "lld/Common/ErrorHandler.h" - #include "lld/Common/LLVM.h" #include "lld/Common/Reproduce.h" #include "llvm/ADT/CachedHashString.h" @@ -23,7 +22,6 @@ #include "llvm/Object/ELF.h" #include "llvm/Object/IRObjectFile.h" #include "llvm/Support/Threading.h" - #include namespace llvm { Index: ELF/MarkLive.cpp =================================================================== --- ELF/MarkLive.cpp +++ ELF/MarkLive.cpp @@ -27,7 +27,7 @@ #include "SymbolTable.h" #include "Symbols.h" #include "Target.h" -#include "Writer.h" +//#include "Writer.h" #include "lld/Common/Memory.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Object/ELF.h" Index: ELF/OutputSections.h =================================================================== --- ELF/OutputSections.h +++ ELF/OutputSections.h @@ -14,7 +14,6 @@ #include "InputSection.h" #include "LinkerScript.h" #include "Relocations.h" - #include "lld/Common/LLVM.h" #include "llvm/MC/StringTableBuilder.h" #include "llvm/Object/ELF.h" Index: ELF/Relocations.cpp =================================================================== --- ELF/Relocations.cpp +++ ELF/Relocations.cpp @@ -52,7 +52,6 @@ #include "Target.h" #include "Thunks.h" #include "lld/Common/Memory.h" - #include "llvm/Support/Endian.h" #include "llvm/Support/raw_ostream.h" #include Index: ELF/Symbols.h =================================================================== --- ELF/Symbols.h +++ ELF/Symbols.h @@ -17,7 +17,6 @@ #include "InputSection.h" #include "Strings.h" - #include "lld/Common/LLVM.h" #include "llvm/Object/Archive.h" #include "llvm/Object/ELF.h" Index: ELF/Symbols.cpp =================================================================== --- ELF/Symbols.cpp +++ ELF/Symbols.cpp @@ -14,7 +14,6 @@ #include "SyntheticSections.h" #include "Target.h" #include "Writer.h" - #include "lld/Common/ErrorHandler.h" #include "lld/Common/Strings.h" #include "llvm/ADT/STLExtras.h" Index: wasm/InputFiles.h =================================================================== --- wasm/InputFiles.h +++ wasm/InputFiles.h @@ -10,15 +10,13 @@ #ifndef LLD_WASM_INPUT_FILES_H #define LLD_WASM_INPUT_FILES_H +#include "Symbols.h" #include "lld/Common/LLVM.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/Object/Archive.h" #include "llvm/Object/Wasm.h" #include "llvm/Support/MemoryBuffer.h" - -#include "Symbols.h" - #include using llvm::object::Archive; Index: wasm/InputFiles.cpp =================================================================== --- wasm/InputFiles.cpp +++ wasm/InputFiles.cpp @@ -8,7 +8,6 @@ //===----------------------------------------------------------------------===// #include "InputFiles.h" - #include "Config.h" #include "InputChunks.h" #include "SymbolTable.h" Index: wasm/MarkLive.h =================================================================== --- wasm/MarkLive.h +++ wasm/MarkLive.h @@ -14,7 +14,8 @@ namespace wasm { void markLive(); -} + +} // namespace wasm } // namespace lld #endif // LLD_WASM_MARKLIVE_H Index: wasm/OutputSections.cpp =================================================================== --- wasm/OutputSections.cpp +++ wasm/OutputSections.cpp @@ -8,7 +8,6 @@ //===----------------------------------------------------------------------===// #include "OutputSections.h" - #include "InputChunks.h" #include "InputFiles.h" #include "OutputSegment.h" Index: wasm/SymbolTable.h =================================================================== --- wasm/SymbolTable.h +++ wasm/SymbolTable.h @@ -12,7 +12,6 @@ #include "InputFiles.h" #include "Symbols.h" - #include "llvm/ADT/CachedHashString.h" #include "llvm/ADT/DenseMap.h" #include "llvm/Support/raw_ostream.h" Index: wasm/SymbolTable.cpp =================================================================== --- wasm/SymbolTable.cpp +++ wasm/SymbolTable.cpp @@ -8,7 +8,6 @@ //===----------------------------------------------------------------------===// #include "SymbolTable.h" - #include "Config.h" #include "InputChunks.h" #include "WriterUtils.h" Index: wasm/Symbols.cpp =================================================================== --- wasm/Symbols.cpp +++ wasm/Symbols.cpp @@ -8,7 +8,6 @@ //===----------------------------------------------------------------------===// #include "Symbols.h" - #include "Config.h" #include "InputChunks.h" #include "InputFiles.h" Index: wasm/Writer.cpp =================================================================== --- wasm/Writer.cpp +++ wasm/Writer.cpp @@ -8,8 +8,6 @@ //===----------------------------------------------------------------------===// #include "Writer.h" - -#include "llvm/ADT/DenseSet.h" #include "Config.h" #include "InputChunks.h" #include "OutputSections.h" @@ -19,6 +17,7 @@ #include "lld/Common/ErrorHandler.h" #include "lld/Common/Memory.h" #include "lld/Common/Threads.h" +#include "llvm/ADT/DenseSet.h" #include "llvm/Support/FileOutputBuffer.h" #include "llvm/Support/Format.h" #include "llvm/Support/FormatVariadic.h" Index: wasm/WriterUtils.cpp =================================================================== --- wasm/WriterUtils.cpp +++ wasm/WriterUtils.cpp @@ -8,9 +8,7 @@ //===----------------------------------------------------------------------===// #include "WriterUtils.h" - #include "lld/Common/ErrorHandler.h" - #include "llvm/Support/Debug.h" #include "llvm/Support/EndianStream.h" #include "llvm/Support/LEB128.h"