aboutsummaryrefslogtreecommitdiff
path: root/lld
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-12-06 15:18:46 -0800
committerFangrui Song <i@maskray.me>2023-12-06 15:18:46 -0800
commit23d402e5b705d98463150302a55623951284b5f2 (patch)
treea6dabd08ab775fe40d6469ce69b158a81ef6aa8b /lld
parent0cd308aebcde8af4d8b11084a82c8e64b6a828c6 (diff)
downloadllvm-23d402e5b705d98463150302a55623951284b5f2.zip
llvm-23d402e5b705d98463150302a55623951284b5f2.tar.gz
llvm-23d402e5b705d98463150302a55623951284b5f2.tar.bz2
[ELF] IWYU <optional> NFC
Diffstat (limited to 'lld')
-rw-r--r--lld/ELF/DWARF.h1
-rw-r--r--lld/ELF/InputFiles.cpp1
-rw-r--r--lld/ELF/InputSection.cpp1
3 files changed, 3 insertions, 0 deletions
diff --git a/lld/ELF/DWARF.h b/lld/ELF/DWARF.h
index e1688fe..1b9a3e3f 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 06a3d56..cc2c591 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 6e972cf..145d55d 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;