summaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-21 23:24:48 +0000
committerChris Lattner <sabre@nondot.org>2001-07-21 23:24:48 +0000
commit68498cefe602bf5364168b4acd0bd5806cdd72ec (patch)
tree699af48be3e6cdac6af704b565642316e0cd4826 /include/llvm
parent942d99e4c8922af40345dce1f886a34d621462c7 (diff)
downloadllvm-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 'include/llvm')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h22
-rw-r--r--include/llvm/CodeGen/Sparc.h15
-rw-r--r--include/llvm/CodeGen/TargetMachine.h11
-rw-r--r--include/llvm/DerivedTypes.h5
4 files changed, 3 insertions, 50 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index 19b3c08985..3a28a1ee0b 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -15,31 +15,11 @@
#ifndef LLVM_CODEGEN_MACHINEINSTR_H
#define LLVM_CODEGEN_MACHINEINSTR_H
-//************************** System Include Files **************************/
-
-#include <string>
-#include <vector>
-
-//*************************** User Include Files ***************************/
-
+#include "llvm/CodeGen/InstrForest.h"
#include "llvm/Tools/DataTypes.h"
-#include "llvm/Instruction.h"
#include "llvm/Support/Unique.h"
#include "llvm/CodeGen/TargetMachine.h"
-
-//************************* Opaque Declarations ****************************/
-
-class Value;
-class InstrTreeNode;
-class InstructionNode;
-class MachineInstr;
-class MachineInstrInfo;
-class MachineOperand;
-
-
-//************************ Exported Data Types *****************************/
-
//---------------------------------------------------------------------------
// class MachineOperand
//
diff --git a/include/llvm/CodeGen/Sparc.h b/include/llvm/CodeGen/Sparc.h
index f623bc2699..3eab4048cf 100644
--- a/include/llvm/CodeGen/Sparc.h
+++ b/include/llvm/CodeGen/Sparc.h
@@ -12,19 +12,7 @@
#ifndef LLVM_CODEGEN_SPARC_H
#define LLVM_CODEGEN_SPARC_H
-//************************** System Include Files **************************/
-
-//*************************** User Include Files ***************************/
-
#include "llvm/CodeGen/TargetMachine.h"
-#include "llvm/CodeGen/MachineInstr.h"
-
-
-//************************* Opaque Declarations ****************************/
-
-
-//************************ Exported Constants ******************************/
-
// OpCodeMask definitions for the Sparc V9
//
@@ -33,9 +21,6 @@ const OpCodeMask Annul = 0x20000000; // annul delay instr?
const OpCodeMask PredictTaken = 0x00080000; // predict branch taken?
-//************************ Exported Data Types *****************************/
-
-
//---------------------------------------------------------------------------
// class UltraSparcMachine
//
diff --git a/include/llvm/CodeGen/TargetMachine.h b/include/llvm/CodeGen/TargetMachine.h
index 72545f88e9..97bcc54e25 100644
--- a/include/llvm/CodeGen/TargetMachine.h
+++ b/include/llvm/CodeGen/TargetMachine.h
@@ -12,21 +12,12 @@
#ifndef LLVM_CODEGEN_TARGETMACHINE_H
#define LLVM_CODEGEN_TARGETMACHINE_H
-//************************** System Include Files **************************/
-
-//*************************** User Include Files ***************************/
-
#include "llvm/Support/Unique.h"
#include "llvm/Tools/DataTypes.h"
-
-//************************* Opaque Declarations ****************************/
+#include <string>
class Type;
class StructType;
-class MachineInstrInfo;
-
-
-//************************ Exported Data Types *****************************/
//---------------------------------------------------------------------------
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h
index a28210ba95..405a632d35 100644
--- a/include/llvm/DerivedTypes.h
+++ b/include/llvm/DerivedTypes.h
@@ -13,10 +13,7 @@
#include "llvm/Type.h"
#include "llvm/CodeGen/TargetMachine.h"
-#include "vector"
-
-class TargetMachine;
-
+#include <vector>
// Future derived types: SIMD packed format