Remove 3 includes from MCInstrDesc.h and explicitly include them where needed
authorPete Cooper <peter_cooper@apple.com>
Fri, 15 May 2015 21:58:42 +0000 (21:58 +0000)
committerPete Cooper <peter_cooper@apple.com>
Fri, 15 May 2015 21:58:42 +0000 (21:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237481 91177308-0d34-0410-b5e6-96231b3b80d8

17 files changed:
include/llvm/CodeGen/CallingConvLower.h
include/llvm/MC/MCInstrDesc.h
lib/MC/MCInstrDesc.cpp
lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.h
lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
lib/Target/NVPTX/NVPTXAsmPrinter.h
lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/Sparc/Disassembler/SparcDisassembler.cpp
lib/Target/SystemZ/InstPrinter/SystemZInstPrinter.cpp
lib/Target/SystemZ/MCTargetDesc/SystemZMCCodeEmitter.cpp
lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
lib/Target/X86/AsmParser/X86Operand.h
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
lib/Target/X86/X86RegisterInfo.h
tools/llvm-rtdyld/llvm-rtdyld.cpp

index e2b744f08ebb19862e6bb5f335d789a9846a5beb..1fd4eeb46b38ac24305a456fe0d110e8fdc48206 100644 (file)
@@ -19,6 +19,7 @@
 #include "llvm/CodeGen/MachineFrameInfo.h"
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/IR/CallingConv.h"
+#include "llvm/MC/MCRegisterInfo.h"
 #include "llvm/Target/TargetCallingConv.h"
 
 namespace llvm {
index 82c924253ecbb2c0c71efafc32462e3b338afb32..26161a4617109d3a509663be6d40252f2d06f378 100644 (file)
 #ifndef LLVM_MC_MCINSTRDESC_H
 #define LLVM_MC_MCINSTRDESC_H
 
-#include "llvm/MC/MCInst.h"
-#include "llvm/MC/MCRegisterInfo.h"
-#include "llvm/MC/MCSubtargetInfo.h"
 #include "llvm/Support/DataTypes.h"
+#include <string>
 
 namespace llvm {
+  class MCInst;
+  class MCRegisterInfo;
+  class MCSubtargetInfo;
 
 //===----------------------------------------------------------------------===//
 // Machine Operand Flags and Description
index 95e8325b9db0d9d5034034824624f6020e9a8604..0f942cd3a74f954a152570665f97610cf7073667 100644 (file)
@@ -14,6 +14,8 @@
 
 #include "llvm/MC/MCInstrDesc.h"
 #include "llvm/MC/MCInst.h"
+#include "llvm/MC/MCRegisterInfo.h"
+#include "llvm/MC/MCSubtargetInfo.h"
 
 using namespace llvm;
 
index 6a3edec607a941232cea85bb3b397cd0924dbfc4..082c80d5ac05c067da42b55cb322a1883ca4c065 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCINSTRINFO_H
 #define LLVM_LIB_TARGET_HEXAGON_MCTARGETDESC_HEXAGONMCINSTRINFO_H
 
+#include "llvm/MC/MCInst.h"
 #include "llvm/MC/MCInstrInfo.h"
 
 #include <bitset>
index bafd3f058f8cff22b1e7a38bfcdd660753a8717d..21cd546c06c67b3883c11846802462f25f4cf694 100644 (file)
@@ -23,6 +23,7 @@
 #include "llvm/MC/MCFixup.h"
 #include "llvm/MC/MCInst.h"
 #include "llvm/MC/MCInstrInfo.h"
+#include "llvm/MC/MCRegisterInfo.h"
 #include "llvm/MC/MCSubtargetInfo.h"
 #include "llvm/Support/raw_ostream.h"
 
index 58b42a7aada66e843b4d856018f558af143069a2..301c68609a2965e52a1a02bb8e606e44285d4c3b 100644 (file)
@@ -40,6 +40,7 @@
 // (subclass of MCStreamer).
 
 namespace llvm {
+  class MCOperand;
 
 class LineReader {
 private:
index c87499ffeaeb7857f186ce290f54fac49342c14e..d5b90f2bd5cd014fe2f750a3e4221be7484e6477 100644 (file)
@@ -17,6 +17,8 @@
 #include "llvm/MC/MCExpr.h"
 #include "llvm/MC/MCInst.h"
 #include "llvm/MC/MCInstrInfo.h"
+#include "llvm/MC/MCRegisterInfo.h"
+#include "llvm/MC/MCSubtargetInfo.h"
 #include "llvm/MC/MCSymbol.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/raw_ostream.h"
index c7c65ca22c324b1d4d0529865556e229f82115ac..17f4cd42164120ceeb137c55648b437254c5c45f 100644 (file)
@@ -20,6 +20,7 @@
 #include "llvm/MC/MCExpr.h"
 #include "llvm/MC/MCInst.h"
 #include "llvm/MC/MCInstrInfo.h"
+#include "llvm/MC/MCRegisterInfo.h"
 #include "llvm/MC/MCSubtargetInfo.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/raw_ostream.h"
index 85ba5a1d640fc9868cf93b7c8a2e8d4d86e01dfc..b4bb50c8093702259efb1ba72ef7519893187897 100644 (file)
@@ -31,6 +31,7 @@
 #include "llvm/CodeGen/SlotIndexes.h"
 #include "llvm/CodeGen/StackMaps.h"
 #include "llvm/MC/MCAsmInfo.h"
+#include "llvm/MC/MCInst.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/ErrorHandling.h"
index 3dedfd7bde0d439c4943caa50eb1517061987ade..4ac34b2b90dfc2fb587694e1297430be15fa0e76 100644 (file)
@@ -16,6 +16,7 @@
 #include "SparcSubtarget.h"
 #include "llvm/MC/MCDisassembler.h"
 #include "llvm/MC/MCFixedLenDisassembler.h"
+#include "llvm/MC/MCInst.h"
 #include "llvm/MC/MCContext.h"
 #include "llvm/MC/MCAsmInfo.h"
 #include "llvm/Support/TargetRegistry.h"
index 02bd47d07f726a74e4b1a47f2c22771a036b18cf..373ddfa7e2577953f4dfa829a5a86074d19759cf 100644 (file)
@@ -9,8 +9,10 @@
 
 #include "SystemZInstPrinter.h"
 #include "llvm/MC/MCExpr.h"
+#include "llvm/MC/MCInst.h"
 #include "llvm/MC/MCInstrInfo.h"
 #include "llvm/MC/MCSymbol.h"
+#include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/raw_ostream.h"
 
 using namespace llvm;
index 8b62738fcdb1f3946eee85a0362e00a4a8125884..c9290c1922d327af2ca6c696597627b85385c9bc 100644 (file)
@@ -16,7 +16,9 @@
 #include "llvm/MC/MCCodeEmitter.h"
 #include "llvm/MC/MCContext.h"
 #include "llvm/MC/MCExpr.h"
+#include "llvm/MC/MCInst.h"
 #include "llvm/MC/MCInstrInfo.h"
+#include "llvm/MC/MCRegisterInfo.h"
 
 using namespace llvm;
 
index 202a23f420955a9dd6016b387485b2fac27c0977..8c2075afe505ef68017655c4d83d7eed49d82cff 100644 (file)
@@ -12,6 +12,7 @@
 #include "SystemZMCAsmInfo.h"
 #include "llvm/MC/MCCodeGenInfo.h"
 #include "llvm/MC/MCInstrInfo.h"
+#include "llvm/MC/MCRegisterInfo.h"
 #include "llvm/MC/MCStreamer.h"
 #include "llvm/MC/MCSubtargetInfo.h"
 #include "llvm/Support/TargetRegistry.h"
index f5a1b3c528d6a1beb90b189b6798af8d8aaeee90..b3066efbab24712fab52dfee703c002a8b1dce78 100644 (file)
 
 #include "X86AsmParserCommon.h"
 #include "llvm/MC/MCExpr.h"
+#include "llvm/MC/MCInst.h"
+#include "llvm/MC/MCRegisterInfo.h"
 #include "llvm/MC/MCParser/MCParsedAsmOperand.h"
 #include "llvm/ADT/STLExtras.h"
+#include "MCTargetDesc/X86MCTargetDesc.h"
 
 namespace llvm {
 
index b84c9835503101f2947acd756fda84c4b46ba842..6d4284dc518b502c195dc4c91b3da274dc67a737 100644 (file)
 #include "llvm/MC/MCELFObjectWriter.h"
 #include "llvm/MC/MCExpr.h"
 #include "llvm/MC/MCFixupKindInfo.h"
+#include "llvm/MC/MCInst.h"
 #include "llvm/MC/MCMachObjectWriter.h"
 #include "llvm/MC/MCObjectWriter.h"
+#include "llvm/MC/MCRegisterInfo.h"
 #include "llvm/MC/MCSectionCOFF.h"
 #include "llvm/MC/MCSectionELF.h"
 #include "llvm/MC/MCSectionMachO.h"
index 74edab9fb8ad06c74ff698b8f6aa8f107b00e099..a714c2a33d06f1c5cc3b7b965559856b290795e0 100644 (file)
@@ -20,6 +20,8 @@
 #include "X86GenRegisterInfo.inc"
 
 namespace llvm {
+  class Triple;
+
 class X86RegisterInfo final : public X86GenRegisterInfo {
 private:
   /// Is64Bit - Is the target 64-bits.
index 7f254da5de0fcf84d92695d42ba0c26e898e9a53..c9877c272832213326ce07103fb2681f45e0f7c9 100644 (file)
@@ -23,6 +23,7 @@
 #include "llvm/MC/MCInstPrinter.h"
 #include "llvm/MC/MCInstrInfo.h"
 #include "llvm/MC/MCRegisterInfo.h"
+#include "llvm/MC/MCSubtargetInfo.h"
 #include "llvm/Object/MachO.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/DynamicLibrary.h"