MIRFormatter.h - remove MachineInstr.h include. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 4 Sep 2020 10:17:02 +0000 (11:17 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 4 Sep 2020 10:17:24 +0000 (11:17 +0100)
Use forward declarations and include the inner dependencies directly.

llvm/include/llvm/CodeGen/MIRFormatter.h

index e57c32c..9cb9209 100644 (file)
 #ifndef LLVM_CODEGEN_MIRFORMATTER_H
 #define LLVM_CODEGEN_MIRFORMATTER_H
 
-#include "llvm/CodeGen/MachineInstr.h"
+#include "llvm/ADT/Optional.h"
 #include "llvm/CodeGen/PseudoSourceValue.h"
+#include "llvm/Support/raw_ostream.h"
+#include <cstdint>
 
 namespace llvm {
 
+class MachineFunction;
+class MachineInstr;
 struct PerFunctionMIParsingState;
 struct SlotMapping;