Skip to content

Commit c41a4a8

Browse files
[llvm-objdump] Remove unused includes (NFC) (#141390)
These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-specific build failures.
1 parent 36d2b1c commit c41a4a8

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

llvm/tools/llvm-objdump/MachODump.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
#include "ObjdumpOptID.h"
1616
#include "llvm-objdump.h"
17-
#include "llvm-c/Disassembler.h"
1817
#include "llvm/ADT/STLExtras.h"
1918
#include "llvm/ADT/StringExtras.h"
2019
#include "llvm/BinaryFormat/MachO.h"
@@ -41,11 +40,8 @@
4140
#include "llvm/Support/Endian.h"
4241
#include "llvm/Support/Format.h"
4342
#include "llvm/Support/FormattedStream.h"
44-
#include "llvm/Support/GraphWriter.h"
4543
#include "llvm/Support/LEB128.h"
4644
#include "llvm/Support/MemoryBuffer.h"
47-
#include "llvm/Support/TargetSelect.h"
48-
#include "llvm/Support/ToolOutputFile.h"
4945
#include "llvm/Support/WithColor.h"
5046
#include "llvm/Support/raw_ostream.h"
5147
#include "llvm/TargetParser/Triple.h"

llvm/tools/llvm-objdump/OffloadDump.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "llvm/Object/ELFObjectFile.h"
1717
#include "llvm/Object/OffloadBinary.h"
1818
#include "llvm/Object/OffloadBundle.h"
19-
#include "llvm/Support/Alignment.h"
2019

2120
using namespace llvm;
2221
using namespace llvm::object;

llvm/tools/llvm-objdump/llvm-objdump.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
#include "llvm/Object/MachO.h"
5757
#include "llvm/Object/MachOUniversal.h"
5858
#include "llvm/Object/OffloadBinary.h"
59-
#include "llvm/Object/OffloadBundle.h"
6059
#include "llvm/Object/Wasm.h"
6160
#include "llvm/Option/Arg.h"
6261
#include "llvm/Option/ArgList.h"
@@ -66,8 +65,6 @@
6665
#include "llvm/Support/Errc.h"
6766
#include "llvm/Support/FileSystem.h"
6867
#include "llvm/Support/Format.h"
69-
#include "llvm/Support/FormatVariadic.h"
70-
#include "llvm/Support/GraphWriter.h"
7168
#include "llvm/Support/LLVMDriver.h"
7269
#include "llvm/Support/MemoryBuffer.h"
7370
#include "llvm/Support/SourceMgr.h"

0 commit comments

Comments
 (0)