[PATCH] D136266: [lld-macho][nfc] Clean up includes
Vy Nguyen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 19 09:47:05 PDT 2022
oontvoo created this revision.
Herald added projects: lld-macho, All.
Herald added a reviewer: lld-macho.
oontvoo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
- remove unused/duplicate includes
- reformatting/whitespaces
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D136266
Files:
lld/MachO/SectionPriorities.cpp
lld/MachO/Symbols.h
lld/MachO/SyntheticSections.h
lld/MachO/UnwindInfoSection.cpp
lld/MachO/UnwindInfoSection.h
lld/MachO/Writer.cpp
Index: lld/MachO/Writer.cpp
===================================================================
--- lld/MachO/Writer.cpp
+++ lld/MachO/Writer.cpp
@@ -20,14 +20,12 @@
#include "SyntheticSections.h"
#include "Target.h"
#include "UnwindInfoSection.h"
-#include "llvm/Support/Parallel.h"
#include "lld/Common/Arrays.h"
#include "lld/Common/CommonLinkerContext.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/LEB128.h"
-#include "llvm/Support/MathExtras.h"
#include "llvm/Support/Parallel.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/ThreadPool.h"
Index: lld/MachO/UnwindInfoSection.h
===================================================================
--- lld/MachO/UnwindInfoSection.h
+++ lld/MachO/UnwindInfoSection.h
@@ -13,8 +13,6 @@
#include "SyntheticSections.h"
#include "llvm/ADT/MapVector.h"
-#include "mach-o/compact_unwind_encoding.h"
-
namespace lld::macho {
class UnwindInfoSection : public SyntheticSection {
Index: lld/MachO/UnwindInfoSection.cpp
===================================================================
--- lld/MachO/UnwindInfoSection.cpp
+++ lld/MachO/UnwindInfoSection.cpp
@@ -7,8 +7,6 @@
//===----------------------------------------------------------------------===//
#include "UnwindInfoSection.h"
-#include "ConcatOutputSection.h"
-#include "Config.h"
#include "InputSection.h"
#include "OutputSection.h"
#include "OutputSegment.h"
@@ -24,6 +22,8 @@
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/Support/Parallel.h"
+#include "mach-o/compact_unwind_encoding.h"
+
#include <numeric>
using namespace llvm;
Index: lld/MachO/SyntheticSections.h
===================================================================
--- lld/MachO/SyntheticSections.h
+++ lld/MachO/SyntheticSections.h
@@ -22,7 +22,6 @@
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/BinaryFormat/MachO.h"
-#include "llvm/MC/StringTableBuilder.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
Index: lld/MachO/Symbols.h
===================================================================
--- lld/MachO/Symbols.h
+++ lld/MachO/Symbols.h
@@ -12,8 +12,7 @@
#include "Config.h"
#include "InputFiles.h"
#include "Target.h"
-#include "lld/Common/ErrorHandler.h"
-#include "lld/Common/Strings.h"
+
#include "llvm/Object/Archive.h"
#include "llvm/Support/MathExtras.h"
Index: lld/MachO/SectionPriorities.cpp
===================================================================
--- lld/MachO/SectionPriorities.cpp
+++ lld/MachO/SectionPriorities.cpp
@@ -26,6 +26,7 @@
#include "llvm/Support/Path.h"
#include "llvm/Support/TimeProfiler.h"
#include "llvm/Support/raw_ostream.h"
+
#include <numeric>
using namespace llvm;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136266.468946.patch
Type: text/x-patch
Size: 2783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221019/a6497a11/attachment.bin>
More information about the llvm-commits
mailing list