Eliminate lots of unnecessary #includes and forward decls
there are probably more to kill
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@261 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/InstrSelection/InstrForest.cpp b/lib/CodeGen/InstrSelection/InstrForest.cpp
index a90da0b..5701ba4 100644
--- a/lib/CodeGen/InstrSelection/InstrForest.cpp
+++ b/lib/CodeGen/InstrSelection/InstrForest.cpp
@@ -25,7 +25,6 @@
//*************************** User Include Files ***************************/
#include "llvm/CodeGen/InstrForest.h"
-#include "llvm/Module.h"
#include "llvm/Method.h"
#include "llvm/iTerminators.h"
#include "llvm/iMemory.h"
@@ -33,8 +32,6 @@
#include "llvm/BasicBlock.h"
#include "llvm/CodeGen/MachineInstr.h"
-//************************ Class Implementations **************************/
-
//------------------------------------------------------------------------
// class InstrTreeNode
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp
index e8897bf..d48f2d4 100644
--- a/lib/CodeGen/MachineInstr.cpp
+++ b/lib/CodeGen/MachineInstr.cpp
@@ -12,22 +12,10 @@
// 7/2/01 - Vikram Adve - Created
//**************************************************************************/
-
-//************************** System Include Files **************************/
-
-#include <strstream.h>
-#include <string>
-#include <vector>
-
-//*************************** User Include Files ***************************/
-
-#include "llvm/Type.h"
-#include "llvm/DerivedTypes.h"
-#include "llvm/ConstPoolVals.h"
-#include "llvm/Value.h"
-#include "llvm/Instruction.h"
-#include "llvm/CodeGen/InstrForest.h"
#include "llvm/CodeGen/MachineInstr.h"
+#include "llvm/ConstPoolVals.h"
+#include "llvm/Instruction.h"
+#include <strstream>
//************************ Class Implementations **************************/
diff --git a/lib/CodeGen/TargetMachine/Sparc/Sparc.cpp b/lib/CodeGen/TargetMachine/Sparc/Sparc.cpp
index c687da7..68270fa 100644
--- a/lib/CodeGen/TargetMachine/Sparc/Sparc.cpp
+++ b/lib/CodeGen/TargetMachine/Sparc/Sparc.cpp
@@ -9,15 +9,8 @@
// 7/15/01 - Vikram Adve - Created
//**************************************************************************/
-
-//************************** System Include Files **************************/
-
-//*************************** User Include Files ***************************/
-
-#include "llvm/DerivedTypes.h"
#include "llvm/CodeGen/Sparc.h"
-
//************************ Exported Constants ******************************/
diff --git a/lib/CodeGen/TargetMachine/TargetMachine.cpp b/lib/CodeGen/TargetMachine/TargetMachine.cpp
index 9b9729c..653f021 100644
--- a/lib/CodeGen/TargetMachine/TargetMachine.cpp
+++ b/lib/CodeGen/TargetMachine/TargetMachine.cpp
@@ -10,23 +10,14 @@
//**************************************************************************/
-//************************** System Include Files **************************/
-
//*************************** User Include Files ***************************/
-#include "llvm/DerivedTypes.h"
#include "llvm/CodeGen/TargetMachine.h"
-
-
-//************************* Opaque Declarations ****************************/
-
-class StructType;
-class MachineInstrInfo;
+#include "llvm/DerivedTypes.h"
//************************ Class Implementations **************************/
-
//---------------------------------------------------------------------------
// function TargetMachine::findOptimalMemberOffsets
//