[llvm] 95ca3aa - BTFDebug.h - reduce MachineInstr.h include to forward declaration. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 7 10:37:20 PDT 2020


Author: Simon Pilgrim
Date: 2020-09-07T17:51:13+01:00
New Revision: 95ca3aacf0f82955e9d259484b886c260337285c

URL: https://github.com/llvm/llvm-project/commit/95ca3aacf0f82955e9d259484b886c260337285c
DIFF: https://github.com/llvm/llvm-project/commit/95ca3aacf0f82955e9d259484b886c260337285c.diff

LOG: BTFDebug.h - reduce MachineInstr.h include to forward declaration. NFCI.

Added: 
    

Modified: 
    llvm/lib/Target/BPF/BTFDebug.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/BPF/BTFDebug.h b/llvm/lib/Target/BPF/BTFDebug.h
index db5b5633f6d9..1bad0d11fee4 100644
--- a/llvm/lib/Target/BPF/BTFDebug.h
+++ b/llvm/lib/Target/BPF/BTFDebug.h
@@ -16,7 +16,8 @@
 
 #include "llvm/ADT/StringMap.h"
 #include "llvm/CodeGen/DebugHandlerBase.h"
-#include "llvm/CodeGen/MachineInstr.h"
+#include <cstdint>
+#include <map>
 #include <set>
 #include <unordered_map>
 #include "BTF.h"
@@ -27,9 +28,12 @@ class AsmPrinter;
 class BTFDebug;
 class DIType;
 class GlobalVariable;
+class MachineFunction;
+class MachineInstr;
+class MachineOperand;
+class MCInst;
 class MCStreamer;
 class MCSymbol;
-class MachineFunction;
 
 /// The base class for BTF type generation.
 class BTFTypeBase {


        


More information about the llvm-commits mailing list