Prune some includes and forward declarations.
authorCraig Topper <craig.topper@gmail.com>
Sun, 25 Mar 2012 18:09:44 +0000 (18:09 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 25 Mar 2012 18:09:44 +0000 (18:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153414 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/Mangler.h
include/llvm/Target/TargetELFWriterInfo.h
include/llvm/Target/TargetFrameLowering.h
include/llvm/Target/TargetJITInfo.h
include/llvm/Target/TargetLowering.h
include/llvm/Target/TargetLoweringObjectFile.h
include/llvm/Target/TargetMachine.h
include/llvm/Target/TargetSubtargetInfo.h

index c1c118b08cab186ccd4e8f23e4b93ff8e0c61a86..d5e165e58b91fb2561a931f050fa8cb0afa9743c 100644 (file)
 #include "llvm/ADT/DenseMap.h"
 
 namespace llvm {
-class StringRef;
 class Twine;
-class Value;
 class GlobalValue;
-template <typename T> class SmallVectorImpl; 
+template <typename T> class SmallVectorImpl;
 class MCContext;
 class MCSymbol;
 class TargetData;
index b97f3e2f4d0fcb897c49ee70dfb74059a05ea61c..114295e8f98554df618e47d042b2919aed68cf6e 100644 (file)
@@ -15,9 +15,6 @@
 #define LLVM_TARGET_TARGETELFWRITERINFO_H
 
 namespace llvm {
-  class Function;
-  class TargetData;
-  class TargetMachine;
 
   //===--------------------------------------------------------------------===//
   //                          TargetELFWriterInfo
index 4c759b2ccb9fc3cdab306bbd89a2db7d1088deca..d56db7b5118e9e305a56b43904b3971305a9dff7 100644 (file)
@@ -15,8 +15,6 @@
 #define LLVM_TARGET_TARGETFRAMELOWERING_H
 
 #include "llvm/CodeGen/MachineBasicBlock.h"
-#include "llvm/MC/MCDwarf.h"
-#include "llvm/ADT/ArrayRef.h"
 
 #include <utility>
 #include <vector>
@@ -24,8 +22,6 @@
 namespace llvm {
   class CalleeSavedInfo;
   class MachineFunction;
-  class MachineBasicBlock;
-  class MachineMove;
   class RegScavenger;
 
 /// Information about stack frame layout on the target.  It holds the direction
index 80b78f8fe0606b824f78c3068d3d2cf905a3ad34..044afd9b73926ef670e5729f9d769694c888fba6 100644 (file)
@@ -17,9 +17,9 @@
 #ifndef LLVM_TARGET_TARGETJITINFO_H
 #define LLVM_TARGET_TARGETJITINFO_H
 
-#include <cassert>
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/DataTypes.h"
+#include <cassert>
 
 namespace llvm {
   class Function;
index 793b08073166c27cf63a8533f4867320141717a3..08420ef70b9719cc705e0275faa44553abd05b54 100644 (file)
@@ -25,7 +25,6 @@
 #include "llvm/CallingConv.h"
 #include "llvm/InlineAsm.h"
 #include "llvm/Attributes.h"
-#include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/CodeGen/SelectionDAGNodes.h"
 #include "llvm/CodeGen/RuntimeLibcalls.h"
 #include "llvm/Support/DebugLoc.h"
index 88f28a6c80a0df42ccdd98af6f56f041a7147c19..d631f58aab7473eb13bde4007a1fed9afa1c5ac9 100644 (file)
 #include "llvm/MC/MCObjectFileInfo.h"
 #include "llvm/MC/SectionKind.h"
 #include "llvm/ADT/ArrayRef.h"
-#include "llvm/ADT/StringRef.h"
 
 namespace llvm {
   class MachineModuleInfo;
   class Mangler;
-  class MCAsmInfo;
   class MCContext;
   class MCExpr;
   class MCSection;
-  class MCSectionMachO;
   class MCSymbol;
   class MCStreamer;
-  class NamedMDNode;
   class GlobalValue;
   class TargetMachine;
   
index d4535dbe9e4512fe74689f9b43b298b1c83d5cbb..13bfe6d27b6d70bbed0b4f7d3fdbf755099bca27 100644 (file)
@@ -14,8 +14,8 @@
 #ifndef LLVM_TARGET_TARGETMACHINE_H
 #define LLVM_TARGET_TARGETMACHINE_H
 
+#include "llvm/Support/CodeGen.h"
 #include "llvm/Target/TargetOptions.h"
-#include "llvm/MC/MCCodeGenInfo.h"
 #include "llvm/ADT/StringRef.h"
 #include <cassert>
 #include <string>
@@ -27,8 +27,6 @@ class JITCodeEmitter;
 class MCAsmInfo;
 class MCCodeGenInfo;
 class MCContext;
-class Pass;
-class PassManager;
 class PassManagerBase;
 class Target;
 class TargetData;
index d9d8ce4e12a971e9912817f991fbe8809ef73e3d..fc23b2c6b58df94100d7bbcf7e1349064458568e 100644 (file)
@@ -15,7 +15,7 @@
 #define LLVM_TARGET_TARGETSUBTARGETINFO_H
 
 #include "llvm/MC/MCSubtargetInfo.h"
-#include "llvm/Target/TargetMachine.h"
+#include "llvm/Support/CodeGen.h"
 
 namespace llvm {