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

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 23 19:18:30 PST 2022


Author: Fangrui Song
Date: 2022-02-23T19:18:24-08:00
New Revision: b01430a04f191d2191be98568d721c8f111d9b71

URL: https://github.com/llvm/llvm-project/commit/b01430a04f191d2191be98568d721c8f111d9b71
DIFF: https://github.com/llvm/llvm-project/commit/b01430a04f191d2191be98568d721c8f111d9b71.diff

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

Added: 
    

Modified: 
    lld/ELF/ICF.cpp
    lld/ELF/LinkerScript.cpp
    lld/ELF/OutputSections.cpp
    lld/ELF/ScriptParser.cpp
    lld/ELF/Writer.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/ICF.cpp b/lld/ELF/ICF.cpp
index 76beff491f52e..a72d172b71db6 100644
--- a/lld/ELF/ICF.cpp
+++ b/lld/ELF/ICF.cpp
@@ -74,6 +74,7 @@
 
 #include "ICF.h"
 #include "Config.h"
+#include "InputFiles.h"
 #include "LinkerScript.h"
 #include "OutputSections.h"
 #include "SymbolTable.h"

diff  --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp
index 4b80d6af6e264..d5cfc34d9eaae 100644
--- a/lld/ELF/LinkerScript.cpp
+++ b/lld/ELF/LinkerScript.cpp
@@ -12,6 +12,7 @@
 
 #include "LinkerScript.h"
 #include "Config.h"
+#include "InputFiles.h"
 #include "InputSection.h"
 #include "OutputSections.h"
 #include "SymbolTable.h"

diff  --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 252108b464b2b..2960117f057fb 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -8,6 +8,7 @@
 
 #include "OutputSections.h"
 #include "Config.h"
+#include "InputFiles.h"
 #include "LinkerScript.h"
 #include "Symbols.h"
 #include "SyntheticSections.h"

diff  --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp
index 595050a83a386..d8839804f656e 100644
--- a/lld/ELF/ScriptParser.cpp
+++ b/lld/ELF/ScriptParser.cpp
@@ -14,6 +14,7 @@
 #include "ScriptParser.h"
 #include "Config.h"
 #include "Driver.h"
+#include "InputFiles.h"
 #include "LinkerScript.h"
 #include "OutputSections.h"
 #include "ScriptLexer.h"

diff  --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index bf9e315ec0d2b..f690711af5c13 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -11,6 +11,7 @@
 #include "ARMErrataFix.h"
 #include "CallGraphSort.h"
 #include "Config.h"
+#include "InputFiles.h"
 #include "LinkerScript.h"
 #include "MapFile.h"
 #include "OutputSections.h"


        


More information about the llvm-commits mailing list