[lld] 6b9a80d - [lld] Fix iwyu problems after 83d59e05b201760e3f364ff6316301d347cbad95

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 28 10:46:49 PST 2022


Author: Fangrui Song
Date: 2022-12-28T10:46:45-08:00
New Revision: 6b9a80de4906c79101af3b1cadcb3ef1edc62fbc

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

LOG: [lld] Fix iwyu problems after 83d59e05b201760e3f364ff6316301d347cbad95

The commit transitively includes lld/include/lld/Common/ErrorHandler.h into
lld/include/lld/Common/Driver.h, which is not intended.

Added: 
    

Modified: 
    lld/COFF/Driver.cpp
    lld/ELF/Driver.cpp
    lld/MachO/Driver.cpp
    lld/MinGW/Driver.cpp
    lld/include/lld/Common/Driver.h
    lld/tools/lld/lld.cpp
    lld/wasm/Driver.cpp

Removed: 
    


################################################################################
diff  --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp
index 58bb15e7d37a7..2c2b0dbad822b 100644
--- a/lld/COFF/Driver.cpp
+++ b/lld/COFF/Driver.cpp
@@ -18,6 +18,7 @@
 #include "Symbols.h"
 #include "Writer.h"
 #include "lld/Common/Args.h"
+#include "lld/Common/CommonLinkerContext.h"
 #include "lld/Common/Driver.h"
 #include "lld/Common/Filesystem.h"
 #include "lld/Common/Timer.h"

diff  --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 233b334d3a388..1c2401650fb2d 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -38,6 +38,7 @@
 #include "Target.h"
 #include "Writer.h"
 #include "lld/Common/Args.h"
+#include "lld/Common/CommonLinkerContext.h"
 #include "lld/Common/Driver.h"
 #include "lld/Common/ErrorHandler.h"
 #include "lld/Common/Filesystem.h"

diff  --git a/lld/MachO/Driver.cpp b/lld/MachO/Driver.cpp
index 3449e68352b75..356fcde096a1b 100644
--- a/lld/MachO/Driver.cpp
+++ b/lld/MachO/Driver.cpp
@@ -24,6 +24,7 @@
 #include "Writer.h"
 
 #include "lld/Common/Args.h"
+#include "lld/Common/CommonLinkerContext.h"
 #include "lld/Common/Driver.h"
 #include "lld/Common/ErrorHandler.h"
 #include "lld/Common/LLVM.h"

diff  --git a/lld/MinGW/Driver.cpp b/lld/MinGW/Driver.cpp
index 6766f2b7af90f..18e493df1d09c 100644
--- a/lld/MinGW/Driver.cpp
+++ b/lld/MinGW/Driver.cpp
@@ -29,6 +29,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "lld/Common/Driver.h"
+#include "lld/Common/CommonLinkerContext.h"
 #include "lld/Common/ErrorHandler.h"
 #include "lld/Common/Memory.h"
 #include "lld/Common/Version.h"

diff  --git a/lld/include/lld/Common/Driver.h b/lld/include/lld/Common/Driver.h
index f3a80a86e9890..19573e6e100dd 100644
--- a/lld/include/lld/Common/Driver.h
+++ b/lld/include/lld/Common/Driver.h
@@ -9,7 +9,6 @@
 #ifndef LLD_COMMON_DRIVER_H
 #define LLD_COMMON_DRIVER_H
 
-#include "lld/Common/CommonLinkerContext.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/Support/raw_ostream.h"
 

diff  --git a/lld/tools/lld/lld.cpp b/lld/tools/lld/lld.cpp
index 9b560896970b2..eb746aeafaec7 100644
--- a/lld/tools/lld/lld.cpp
+++ b/lld/tools/lld/lld.cpp
@@ -25,6 +25,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "lld/Common/CommonLinkerContext.h"
 #include "lld/Common/Driver.h"
 #include "lld/Common/ErrorHandler.h"
 #include "lld/Common/Memory.h"

diff  --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp
index 2e78153bc2caf..3393925356598 100644
--- a/lld/wasm/Driver.cpp
+++ b/lld/wasm/Driver.cpp
@@ -14,6 +14,7 @@
 #include "SymbolTable.h"
 #include "Writer.h"
 #include "lld/Common/Args.h"
+#include "lld/Common/CommonLinkerContext.h"
 #include "lld/Common/ErrorHandler.h"
 #include "lld/Common/Filesystem.h"
 #include "lld/Common/Memory.h"


        


More information about the llvm-commits mailing list