[llvm] e7fc356 - MCInstrDesc.h - move MCSubtargetInfo forward declaration down to MCInstrInfo.h. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 09:18:20 PDT 2020


Author: Simon Pilgrim
Date: 2020-04-16T17:13:56+01:00
New Revision: e7fc356668b1b9ba31126155fd55c76189be31ff

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

LOG: MCInstrDesc.h - move MCSubtargetInfo forward declaration down to MCInstrInfo.h. NFC.

Remove unused FeatureBitset forward declaration

Added: 
    

Modified: 
    llvm/include/llvm/MC/MCInstrDesc.h
    llvm/include/llvm/MC/MCInstrInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MC/MCInstrDesc.h b/llvm/include/llvm/MC/MCInstrDesc.h
index fa620d21a120..17454e3134a2 100644
--- a/llvm/include/llvm/MC/MCInstrDesc.h
+++ b/llvm/include/llvm/MC/MCInstrDesc.h
@@ -19,9 +19,8 @@
 #include <string>
 
 namespace llvm {
-  class MCInst;
-  class MCSubtargetInfo;
-  class FeatureBitset;
+
+class MCInst;
 
 //===----------------------------------------------------------------------===//
 // Machine Operand Flags and Description

diff  --git a/llvm/include/llvm/MC/MCInstrInfo.h b/llvm/include/llvm/MC/MCInstrInfo.h
index f5c944eed682..598e24257e5d 100644
--- a/llvm/include/llvm/MC/MCInstrInfo.h
+++ b/llvm/include/llvm/MC/MCInstrInfo.h
@@ -18,6 +18,8 @@
 
 namespace llvm {
 
+class MCSubtargetInfo;
+
 //---------------------------------------------------------------------------
 /// Interface to description of machine instruction set.
 class MCInstrInfo {


        


More information about the llvm-commits mailing list