Skip to content

Commit 3a1308b

Browse files
committed
MIRFormatter.h - remove MachineInstr.h include. NFC.
Use forward declarations and include the inner dependencies directly.
1 parent b7c1810 commit 3a1308b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

llvm/include/llvm/CodeGen/MIRFormatter.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@
1414
#ifndef LLVM_CODEGEN_MIRFORMATTER_H
1515
#define LLVM_CODEGEN_MIRFORMATTER_H
1616

17-
#include "llvm/CodeGen/MachineInstr.h"
17+
#include "llvm/ADT/Optional.h"
1818
#include "llvm/CodeGen/PseudoSourceValue.h"
19+
#include "llvm/Support/raw_ostream.h"
20+
#include <cstdint>
1921

2022
namespace llvm {
2123

24+
class MachineFunction;
25+
class MachineInstr;
2226
struct PerFunctionMIParsingState;
2327
struct SlotMapping;
2428

0 commit comments

Comments
 (0)