[llvm] 3a1308b - MIRFormatter.h - remove MachineInstr.h include. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 4 03:17:44 PDT 2020


Author: Simon Pilgrim
Date: 2020-09-04T11:17:24+01:00
New Revision: 3a1308be051711473e4cdd4aa12c70070991f648

URL: https://github.com/llvm/llvm-project/commit/3a1308be051711473e4cdd4aa12c70070991f648
DIFF: https://github.com/llvm/llvm-project/commit/3a1308be051711473e4cdd4aa12c70070991f648.diff

LOG: MIRFormatter.h - remove MachineInstr.h include. NFC.

Use forward declarations and include the inner dependencies directly.

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/MIRFormatter.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/MIRFormatter.h b/llvm/include/llvm/CodeGen/MIRFormatter.h
index e57c32c5ae61..9cb92091db50 100644
--- a/llvm/include/llvm/CodeGen/MIRFormatter.h
+++ b/llvm/include/llvm/CodeGen/MIRFormatter.h
@@ -14,11 +14,15 @@
 #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;
 


        


More information about the llvm-commits mailing list