diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-21 23:24:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-21 23:24:48 +0000 |
commit | 68498cefe602bf5364168b4acd0bd5806cdd72ec (patch) | |
tree | 699af48be3e6cdac6af704b565642316e0cd4826 /lib/CodeGen | |
parent | 942d99e4c8922af40345dce1f886a34d621462c7 (diff) | |
download | llvm-68498cefe602bf5364168b4acd0bd5806cdd72ec.tar.gz llvm-68498cefe602bf5364168b4acd0bd5806cdd72ec.tar.bz2 llvm-68498cefe602bf5364168b4acd0bd5806cdd72ec.tar.xz |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/InstrSelection/InstrForest.cpp | 3 | ||||
-rw-r--r-- | lib/CodeGen/MachineInstr.cpp | 16 | ||||
-rw-r--r-- | lib/CodeGen/TargetMachine/Sparc/Sparc.cpp | 7 | ||||
-rw-r--r-- | lib/CodeGen/TargetMachine/TargetMachine.cpp | 11 |
4 files changed, 3 insertions, 34 deletions
diff --git a/lib/CodeGen/InstrSelection/InstrForest.cpp b/lib/CodeGen/InstrSelection/InstrForest.cpp index a90da0b584..5701ba4e11 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 e8897bf2e9..d48f2d4e35 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/CodeGen/MachineInstr.h" #include "llvm/ConstPoolVals.h" -#include "llvm/Value.h" #include "llvm/Instruction.h" -#include "llvm/CodeGen/InstrForest.h" -#include "llvm/CodeGen/MachineInstr.h" +#include <strstream> //************************ Class Implementations **************************/ diff --git a/lib/CodeGen/TargetMachine/Sparc/Sparc.cpp b/lib/CodeGen/TargetMachine/Sparc/Sparc.cpp index c687da73d8..68270fae60 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 9b9729c1ac..653f0217cd 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 // |