[llvm] 1b1df15 - [NFC] #include MCSymbol.h to avoid an incomplete type

Jordan Rupprecht via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 14:04:03 PST 2022


Author: Jordan Rupprecht
Date: 2022-12-06T14:03:56-08:00
New Revision: 1b1df15538ec08dccf793a01c6615960213d031e

URL: https://github.com/llvm/llvm-project/commit/1b1df15538ec08dccf793a01c6615960213d031e
DIFF: https://github.com/llvm/llvm-project/commit/1b1df15538ec08dccf793a01c6615960213d031e.diff

LOG: [NFC] #include MCSymbol.h to avoid an incomplete type

Note: this header already has a dep on MC headers via MCContext.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/MachineModuleInfo.h b/llvm/include/llvm/CodeGen/MachineModuleInfo.h
index 61240924e5e1..e747f97c30a1 100644
--- a/llvm/include/llvm/CodeGen/MachineModuleInfo.h
+++ b/llvm/include/llvm/CodeGen/MachineModuleInfo.h
@@ -34,6 +34,7 @@
 #include "llvm/ADT/PointerIntPair.h"
 #include "llvm/IR/PassManager.h"
 #include "llvm/MC/MCContext.h"
+#include "llvm/MC/MCSymbol.h"
 #include "llvm/Pass.h"
 #include <memory>
 #include <utility>
@@ -45,7 +46,6 @@ class Function;
 class LLVMTargetMachine;
 class MachineFunction;
 class Module;
-class MCSymbol;
 
 //===----------------------------------------------------------------------===//
 /// This class can be derived from and used by targets to hold private


        


More information about the llvm-commits mailing list