[lld] 23d402e - [ELF] IWYU <optional> NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 15:18:50 PST 2023


Author: Fangrui Song
Date: 2023-12-06T15:18:46-08:00
New Revision: 23d402e5b705d98463150302a55623951284b5f2

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

LOG: [ELF] IWYU <optional> NFC

Added: 
    

Modified: 
    lld/ELF/DWARF.h
    lld/ELF/InputFiles.cpp
    lld/ELF/InputSection.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/DWARF.h b/lld/ELF/DWARF.h
index e1688fef9c9e4..1b9a3e3f77943 100644
--- a/lld/ELF/DWARF.h
+++ b/lld/ELF/DWARF.h
@@ -13,6 +13,7 @@
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/DebugInfo/DWARF/DWARFContext.h"
 #include "llvm/Object/ELF.h"
+#include <optional>
 
 namespace lld::elf {
 

diff  --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 06a3d565deb76..cc2c5916e05c2 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -30,6 +30,7 @@
 #include "llvm/Support/RISCVAttributeParser.h"
 #include "llvm/Support/TarWriter.h"
 #include "llvm/Support/raw_ostream.h"
+#include <optional>
 
 using namespace llvm;
 using namespace llvm::ELF;

diff  --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index 6e972cf084cdc..145d55d9a0a4b 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -22,6 +22,7 @@
 #include "llvm/Support/xxhash.h"
 #include <algorithm>
 #include <mutex>
+#include <optional>
 #include <vector>
 
 using namespace llvm;


        


More information about the llvm-commits mailing list