[PATCH] D121329: Cleanup includes: MCDisassembler
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 9 13:32:43 PST 2022
serge-sans-paille created this revision.
serge-sans-paille added reviewers: MaskRay, RKSimon, lenary.
Herald added a subscriber: hiraditya.
Herald added a project: All.
serge-sans-paille requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Some extra minor cleanup.
Discourse thread: https://discourse.llvm.org/t/include-what-you-use-include-cleanup
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D121329
Files:
llvm/include/llvm/MC/MCDisassembler/MCExternalSymbolizer.h
llvm/include/llvm/MC/MCDisassembler/MCSymbolizer.h
llvm/lib/MC/MCDisassembler/Disassembler.cpp
llvm/lib/MC/MCDisassembler/Disassembler.h
llvm/lib/MC/MCDisassembler/MCDisassembler.cpp
llvm/lib/MC/MCDisassembler/MCRelocationInfo.cpp
Index: llvm/lib/MC/MCDisassembler/MCRelocationInfo.cpp
===================================================================
--- llvm/lib/MC/MCDisassembler/MCRelocationInfo.cpp
+++ llvm/lib/MC/MCDisassembler/MCRelocationInfo.cpp
@@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/MC/MCDisassembler/MCRelocationInfo.h"
-#include "llvm-c/Disassembler.h"
+#include "llvm-c/DisassemblerTypes.h"
#include "llvm/MC/TargetRegistry.h"
using namespace llvm;
Index: llvm/lib/MC/MCDisassembler/MCDisassembler.cpp
===================================================================
--- llvm/lib/MC/MCDisassembler/MCDisassembler.cpp
+++ llvm/lib/MC/MCDisassembler/MCDisassembler.cpp
@@ -8,9 +8,6 @@
#include "llvm/MC/MCDisassembler/MCDisassembler.h"
#include "llvm/ADT/ArrayRef.h"
-#include "llvm/ADT/StringRef.h"
-#include "llvm/Support/raw_ostream.h"
-#include <algorithm>
using namespace llvm;
Index: llvm/lib/MC/MCDisassembler/Disassembler.h
===================================================================
--- llvm/lib/MC/MCDisassembler/Disassembler.h
+++ llvm/lib/MC/MCDisassembler/Disassembler.h
@@ -16,7 +16,7 @@
#ifndef LLVM_LIB_MC_MCDISASSEMBLER_DISASSEMBLER_H
#define LLVM_LIB_MC_MCDISASSEMBLER_DISASSEMBLER_H
-#include "llvm-c/Disassembler.h"
+#include "llvm-c/DisassemblerTypes.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
Index: llvm/lib/MC/MCDisassembler/Disassembler.cpp
===================================================================
--- llvm/lib/MC/MCDisassembler/Disassembler.cpp
+++ llvm/lib/MC/MCDisassembler/Disassembler.cpp
@@ -30,7 +30,6 @@
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
-#include <cstddef>
#include <cstring>
using namespace llvm;
Index: llvm/include/llvm/MC/MCDisassembler/MCSymbolizer.h
===================================================================
--- llvm/include/llvm/MC/MCDisassembler/MCSymbolizer.h
+++ llvm/include/llvm/MC/MCDisassembler/MCSymbolizer.h
@@ -17,9 +17,9 @@
#include "llvm/ADT/ArrayRef.h"
#include "llvm/MC/MCDisassembler/MCRelocationInfo.h"
-#include <algorithm>
#include <cstdint>
#include <memory>
+#include <utility>
namespace llvm {
Index: llvm/include/llvm/MC/MCDisassembler/MCExternalSymbolizer.h
===================================================================
--- llvm/include/llvm/MC/MCDisassembler/MCExternalSymbolizer.h
+++ llvm/include/llvm/MC/MCDisassembler/MCExternalSymbolizer.h
@@ -15,7 +15,7 @@
#ifndef LLVM_MC_MCDISASSEMBLER_MCEXTERNALSYMBOLIZER_H
#define LLVM_MC_MCDISASSEMBLER_MCEXTERNALSYMBOLIZER_H
-#include "llvm-c/Disassembler.h"
+#include "llvm-c/DisassemblerTypes.h"
#include "llvm/MC/MCDisassembler/MCSymbolizer.h"
#include <memory>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121329.414200.patch
Type: text/x-patch
Size: 2842 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220309/8ddace95/attachment.bin>
More information about the llvm-commits
mailing list