MachineBasicBlock.h - remove unnecessary includes. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 19 May 2020 13:00:37 +0000 (14:00 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 19 May 2020 14:15:25 +0000 (15:15 +0100)
Don't explicitly include ilist_node.h + simple_ilist.h - we already include ilist.h that include these for us and all references are in terms of that.

The rest can be covered by forward declarations.

llvm/include/llvm/CodeGen/MachineBasicBlock.h

index 3d486fa..6f25744 100644 (file)
 
 #include "llvm/ADT/GraphTraits.h"
 #include "llvm/ADT/ilist.h"
-#include "llvm/ADT/ilist_node.h"
 #include "llvm/ADT/iterator_range.h"
-#include "llvm/ADT/simple_ilist.h"
 #include "llvm/ADT/SparseBitVector.h"
 #include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/CodeGen/MachineInstrBundleIterator.h"
 #include "llvm/IR/DebugLoc.h"
 #include "llvm/MC/LaneBitmask.h"
-#include "llvm/MC/MCRegisterInfo.h"
 #include "llvm/Support/BranchProbability.h"
-#include "llvm/Support/Printable.h"
 #include <cassert>
 #include <cstdint>
 #include <functional>
@@ -40,6 +36,7 @@ class MachineFunction;
 class MCSymbol;
 class ModuleSlotTracker;
 class Pass;
+class Printable;
 class SlotIndexes;
 class StringRef;
 class raw_ostream;