[BOLT][NFC] Reduce includes with include-what-you-use
Summary: Removed redundant includes with IWYU Test Plan: ninja bolt Reviewers: maksfb FBD32043568
This commit is contained in:
@@ -28,13 +28,12 @@
|
||||
#include "llvm/MC/MCAsmInfo.h"
|
||||
#include "llvm/MC/MCCodeEmitter.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCDwarf.h"
|
||||
#include "llvm/MC/MCInstrInfo.h"
|
||||
#include "llvm/MC/MCObjectFileInfo.h"
|
||||
#include "llvm/MC/MCObjectWriter.h"
|
||||
#include "llvm/MC/MCPseudoProbe.h"
|
||||
#include "llvm/MC/MCSectionELF.h"
|
||||
#include "llvm/MC/MCSectionMachO.h"
|
||||
#include "llvm/MC/MCStreamer.h"
|
||||
#include "llvm/MC/MCSymbol.h"
|
||||
#include "llvm/MC/TargetRegistry.h"
|
||||
#include "llvm/Support/ErrorOr.h"
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#define BOLT_CORE_BINARY_DATA_H
|
||||
|
||||
#include "llvm/ADT/Twine.h"
|
||||
#include "llvm/MC/MCStreamer.h"
|
||||
#include "llvm/MC/MCSymbol.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <algorithm>
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#ifndef BOLT_CORE_DEBUG_DATA_H
|
||||
#define BOLT_CORE_DEBUG_DATA_H
|
||||
|
||||
#include "llvm/ADT/MapVector.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
|
||||
#include "llvm/MC/MCDwarf.h"
|
||||
@@ -33,8 +32,6 @@
|
||||
|
||||
namespace llvm {
|
||||
|
||||
class DWARFAbbreviationDeclarationSet;
|
||||
|
||||
namespace bolt {
|
||||
|
||||
class BinaryContext;
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
|
||||
namespace llvm {
|
||||
namespace bolt {
|
||||
class DataflowInfoManager;
|
||||
class FrameAnalysis;
|
||||
|
||||
class AllocCombinerPass : public BinaryFunctionPass {
|
||||
/// Stats aggregating variables
|
||||
|
||||
@@ -10,11 +10,10 @@
|
||||
#define BOLT_REWRITE_DWARF_REWRITER_H
|
||||
|
||||
#include "bolt/Core/DebugData.h"
|
||||
#include "bolt/Rewrite/RewriteInstance.h"
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <set>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
#include "llvm/MC/MCExpr.h"
|
||||
#include "llvm/MC/MCInst.h"
|
||||
#include "llvm/MC/MCInstPrinter.h"
|
||||
#include "llvm/MC/MCStreamer.h"
|
||||
#include "llvm/Object/ObjectFile.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
||||
@@ -11,11 +11,10 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "bolt/Core/DebugData.h"
|
||||
#include "bolt/Core/BinaryBasicBlock.h"
|
||||
#include "bolt/Core/BinaryFunction.h"
|
||||
#include "bolt/Core/BinaryContext.h"
|
||||
#include "bolt/Utils/Utils.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCObjectStreamer.h"
|
||||
#include "llvm/MC/MCSymbol.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/EndianStream.h"
|
||||
#include "llvm/Support/LEB128.h"
|
||||
@@ -32,6 +31,8 @@ extern llvm::cl::opt<unsigned> Verbosity;
|
||||
} // namespace opts
|
||||
|
||||
namespace llvm {
|
||||
class MCSymbol;
|
||||
|
||||
namespace bolt {
|
||||
|
||||
const DebugLineTableRowRef DebugLineTableRowRef::NULL_ROW{0, 0};
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "bolt/Core/BinaryFunction.h"
|
||||
#include "bolt/Core/BinarySection.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
||||
#define DEBUG_TYPE "bolt"
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include "bolt/Passes/IndirectCallPromotion.h"
|
||||
#include "bolt/Passes/BinaryFunctionCallGraph.h"
|
||||
#include "bolt/Passes/DataflowInfoManager.h"
|
||||
#include "bolt/Utils/CommandLineOpts.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
|
||||
#define DEBUG_TYPE "ICP"
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
|
||||
#include "bolt/Passes/ThreeWayBranch.h"
|
||||
|
||||
#include <numeric>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "bolt/Core/BinaryFunction.h"
|
||||
#include "bolt/Core/DebugData.h"
|
||||
#include "bolt/Core/ParallelUtilities.h"
|
||||
#include "bolt/Rewrite/RewriteInstance.h"
|
||||
#include "bolt/Utils/Utils.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/BinaryFormat/Dwarf.h"
|
||||
@@ -20,11 +21,8 @@
|
||||
#include "llvm/MC/MCAsmBackend.h"
|
||||
#include "llvm/MC/MCAsmLayout.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCDwarf.h"
|
||||
#include "llvm/MC/MCObjectWriter.h"
|
||||
#include "llvm/MC/MCSection.h"
|
||||
#include "llvm/MC/MCStreamer.h"
|
||||
#include "llvm/MC/MCSymbol.h"
|
||||
#include "llvm/Object/ObjectFile.h"
|
||||
#include "llvm/Support/Casting.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
|
||||
@@ -19,10 +19,8 @@
|
||||
#include "bolt/Rewrite/ExecutableFileMemoryManager.h"
|
||||
#include "bolt/RuntimeLibs/InstrumentationRuntimeLibrary.h"
|
||||
#include "bolt/Utils/Utils.h"
|
||||
#include "llvm/MC/MCAsmBackend.h"
|
||||
#include "llvm/MC/MCAsmLayout.h"
|
||||
#include "llvm/MC/MCObjectStreamer.h"
|
||||
#include "llvm/MC/MCObjectWriter.h"
|
||||
#include "llvm/Support/FileSystem.h"
|
||||
#include "llvm/Support/ToolOutputFile.h"
|
||||
|
||||
|
||||
@@ -35,10 +35,8 @@
|
||||
#include "llvm/MC/MCAsmBackend.h"
|
||||
#include "llvm/MC/MCAsmInfo.h"
|
||||
#include "llvm/MC/MCAsmLayout.h"
|
||||
#include "llvm/MC/MCContext.h"
|
||||
#include "llvm/MC/MCDisassembler/MCDisassembler.h"
|
||||
#include "llvm/MC/MCObjectStreamer.h"
|
||||
#include "llvm/MC/MCObjectWriter.h"
|
||||
#include "llvm/MC/MCStreamer.h"
|
||||
#include "llvm/MC/MCSymbol.h"
|
||||
#include "llvm/MC/TargetRegistry.h"
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include "bolt/Utils/Utils.h"
|
||||
#include "llvm/BinaryFormat/Dwarf.h"
|
||||
#include "llvm/MC/MCDwarf.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/LEB128.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user