[llvm] 23cdbdb - MCSectionWasm.h - reduce includes to forward declarations. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 27 02:05:11 PDT 2020


Author: Simon Pilgrim
Date: 2020-06-27T10:03:34+01:00
New Revision: 23cdbdb20b9abdfd3fe98d84f4117474194b5a59

URL: https://github.com/llvm/llvm-project/commit/23cdbdb20b9abdfd3fe98d84f4117474194b5a59
DIFF: https://github.com/llvm/llvm-project/commit/23cdbdb20b9abdfd3fe98d84f4117474194b5a59.diff

LOG: MCSectionWasm.h - reduce includes to forward declarations. NFC.

Added: 
    

Modified: 
    llvm/include/llvm/MC/MCSectionWasm.h
    llvm/lib/MC/MCSectionWasm.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MC/MCSectionWasm.h b/llvm/include/llvm/MC/MCSectionWasm.h
index 2cf64deaca39..6211afef71db 100644
--- a/llvm/include/llvm/MC/MCSectionWasm.h
+++ b/llvm/include/llvm/MC/MCSectionWasm.h
@@ -13,15 +13,14 @@
 #ifndef LLVM_MC_MCSECTIONWASM_H
 #define LLVM_MC_MCSECTIONWASM_H
 
-#include "llvm/ADT/Twine.h"
 #include "llvm/MC/MCSection.h"
-#include "llvm/MC/MCSymbolWasm.h"
-#include "llvm/Support/Debug.h"
-#include "llvm/Support/raw_ostream.h"
 
 namespace llvm {
 
 class MCSymbol;
+class MCSymbolWasm;
+class StringRef;
+class raw_ostream;
 
 /// This represents a section on wasm.
 class MCSectionWasm final : public MCSection {

diff  --git a/llvm/lib/MC/MCSectionWasm.cpp b/llvm/lib/MC/MCSectionWasm.cpp
index 995b811b758e..27ed51802a2e 100644
--- a/llvm/lib/MC/MCSectionWasm.cpp
+++ b/llvm/lib/MC/MCSectionWasm.cpp
@@ -10,6 +10,7 @@
 #include "llvm/MC/MCAsmInfo.h"
 #include "llvm/MC/MCExpr.h"
 #include "llvm/MC/MCSymbol.h"
+#include "llvm/MC/MCSymbolWasm.h"
 #include "llvm/Support/raw_ostream.h"
 
 using namespace llvm;


        


More information about the llvm-commits mailing list