From 3889a2cb05c36f30050941679d5fd55d45e6a3ed Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 22 Jun 2003 03:08:05 +0000 Subject: [PATCH] Remove a ton of extraneous #includes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6842 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/Support/CommandLine.h | 1 - include/Support/SCCIterator.h | 8 ++++---- include/Support/Timer.h | 3 +-- include/Support/Tree.h | 1 - include/llvm/ADT/SCCIterator.h | 8 ++++---- include/llvm/ADT/Tree.h | 1 - include/llvm/Analysis/AliasSetTracker.h | 2 -- include/llvm/Analysis/CallGraph.h | 2 -- include/llvm/Analysis/ConstantsScanner.h | 2 -- include/llvm/Analysis/DSGraph.h | 2 -- include/llvm/Analysis/DSGraphTraits.h | 2 -- include/llvm/Analysis/DSSupport.h | 3 +-- include/llvm/Analysis/DataStructure.h | 2 -- include/llvm/Analysis/DataStructure/DSGraph.h | 2 -- include/llvm/Analysis/DataStructure/DSGraphTraits.h | 2 -- include/llvm/Analysis/DataStructure/DSSupport.h | 3 +-- include/llvm/Analysis/DataStructure/DataStructure.h | 2 -- include/llvm/Analysis/DependenceGraph.h | 2 -- include/llvm/Analysis/Dominators.h | 1 - include/llvm/Analysis/IPModRef.h | 2 -- include/llvm/Analysis/InstForest.h | 3 --- include/llvm/Analysis/IntervalIterator.h | 2 -- include/llvm/Analysis/MemoryDepAnalysis.h | 7 +------ include/llvm/Analysis/PgmDependenceGraph.h | 7 +------ include/llvm/CodeGen/InstrForest.h | 2 -- include/llvm/CodeGen/InstrSelection.h | 1 - include/llvm/CodeGen/LiveVariables.h | 1 - include/llvm/CodeGen/MachineCodeForInstruction.h | 1 - include/llvm/CodeGen/MachineInstr.h | 1 - include/llvm/CodeGen/MachineInstrAnnot.h | 2 -- include/llvm/CodeGen/SSARegMap.h | 3 --- include/llvm/Constant.h | 1 - include/llvm/ConstantHandling.h | 2 -- include/llvm/Constants.h | 2 -- include/llvm/DerivedTypes.h | 2 -- include/llvm/GlobalVariable.h | 2 -- include/llvm/Instruction.h | 2 -- include/llvm/Pass.h | 1 - include/llvm/PassAnalysisSupport.h | 2 -- include/llvm/PassSupport.h | 2 -- include/llvm/Support/CFG.h | 2 -- include/llvm/Support/CommandLine.h | 1 - include/llvm/Support/InstVisitor.h | 1 - include/llvm/Support/PassNameParser.h | 1 - include/llvm/Support/Timer.h | 3 +-- include/llvm/SymbolTable.h | 2 -- include/llvm/Target/MRegisterInfo.h | 1 - include/llvm/Target/TargetSchedInfo.h | 1 - include/llvm/User.h | 2 -- include/llvm/iOther.h | 2 -- include/llvm/iPHINode.h | 2 -- include/llvm/iTerminators.h | 2 -- lib/CodeGen/RegAlloc/IGNode.h | 1 - lib/CodeGen/RegAlloc/LiveRange.h | 5 +---- lib/Target/SparcV9/MachineCodeForInstruction.h | 1 - lib/Target/SparcV9/MachineInstrAnnot.h | 2 -- lib/Target/SparcV9/RegAlloc/IGNode.h | 1 - lib/Target/SparcV9/RegAlloc/LiveRange.h | 5 +---- lib/VMCore/ConstantFold.h | 2 -- lib/VMCore/ConstantFolding.h | 2 -- 60 files changed, 16 insertions(+), 120 deletions(-) diff --git a/include/Support/CommandLine.h b/include/Support/CommandLine.h index 728bb146783..ed2559bd2b9 100644 --- a/include/Support/CommandLine.h +++ b/include/Support/CommandLine.h @@ -18,7 +18,6 @@ #include #include #include "boost/type_traits/object_traits.hpp" - #include /// cl Namespace - This namespace contains all of the command line option diff --git a/include/Support/SCCIterator.h b/include/Support/SCCIterator.h index b7037701e06..a06e186a902 100644 --- a/include/Support/SCCIterator.h +++ b/include/Support/SCCIterator.h @@ -1,4 +1,4 @@ -//===-- Support/TarjanSCCIterator.h -Generic Tarjan SCC iterator -*- C++ -*--=// +//===-- Support/TarjanSCCIterator.h - Tarjan SCC iterator -------*- C++ -*-===// // // This builds on the Support/GraphTraits.h file to find the strongly // connected components (SCCs) of a graph in O(N+E) time using @@ -9,18 +9,18 @@ // // To visit S1 *before* S2, use the TarjanSCCIterator on the Inverse graph. // (NOTE: This requires some simple wrappers and is not supported yet.) +// //===----------------------------------------------------------------------===// #ifndef SUPPORT_TARJANSCCITERATOR_H #define SUPPORT_TARJANSCCITERATOR_H #include "Support/GraphTraits.h" -#include -#include +#include "Support/Statistic.h" +#include "Support/iterator" #include #include #include - #include //-------------------------------------------------------------------------- diff --git a/include/Support/Timer.h b/include/Support/Timer.h index 40ab643928a..5cacadaf1ce 100644 --- a/include/Support/Timer.h +++ b/include/Support/Timer.h @@ -28,7 +28,6 @@ #include #include #include - #include class TimerGroup; @@ -64,7 +63,7 @@ public: PeakMemBase = T.PeakMemBase; Name = T.Name; Started = T.Started; - assert (TG == T.TG && "Can only assign timers in the same TimerGroup!"); + assert(TG == T.TG && "Can only assign timers in the same TimerGroup!"); return *this; } diff --git a/include/Support/Tree.h b/include/Support/Tree.h index 9979caaf312..7a3e9c43505 100644 --- a/include/Support/Tree.h +++ b/include/Support/Tree.h @@ -9,7 +9,6 @@ #define SUPPORT_TREE_H #include - #include template diff --git a/include/llvm/ADT/SCCIterator.h b/include/llvm/ADT/SCCIterator.h index b7037701e06..a06e186a902 100644 --- a/include/llvm/ADT/SCCIterator.h +++ b/include/llvm/ADT/SCCIterator.h @@ -1,4 +1,4 @@ -//===-- Support/TarjanSCCIterator.h -Generic Tarjan SCC iterator -*- C++ -*--=// +//===-- Support/TarjanSCCIterator.h - Tarjan SCC iterator -------*- C++ -*-===// // // This builds on the Support/GraphTraits.h file to find the strongly // connected components (SCCs) of a graph in O(N+E) time using @@ -9,18 +9,18 @@ // // To visit S1 *before* S2, use the TarjanSCCIterator on the Inverse graph. // (NOTE: This requires some simple wrappers and is not supported yet.) +// //===----------------------------------------------------------------------===// #ifndef SUPPORT_TARJANSCCITERATOR_H #define SUPPORT_TARJANSCCITERATOR_H #include "Support/GraphTraits.h" -#include -#include +#include "Support/Statistic.h" +#include "Support/iterator" #include #include #include - #include //-------------------------------------------------------------------------- diff --git a/include/llvm/ADT/Tree.h b/include/llvm/ADT/Tree.h index 9979caaf312..7a3e9c43505 100644 --- a/include/llvm/ADT/Tree.h +++ b/include/llvm/ADT/Tree.h @@ -9,7 +9,6 @@ #define SUPPORT_TREE_H #include - #include template diff --git a/include/llvm/Analysis/AliasSetTracker.h b/include/llvm/Analysis/AliasSetTracker.h index d2f22f36bbb..45867ae9162 100644 --- a/include/llvm/Analysis/AliasSetTracker.h +++ b/include/llvm/Analysis/AliasSetTracker.h @@ -10,8 +10,6 @@ #ifndef LLVM_ANALYSIS_ALIASSETTRACKER_H #define LLVM_ANALYSIS_ALIASSETTRACKER_H -#include - #include "llvm/Support/CallSite.h" #include "Support/iterator" #include "Support/hash_map" diff --git a/include/llvm/Analysis/CallGraph.h b/include/llvm/Analysis/CallGraph.h index 69dc5cf4421..fde7c82abbe 100644 --- a/include/llvm/Analysis/CallGraph.h +++ b/include/llvm/Analysis/CallGraph.h @@ -41,8 +41,6 @@ #ifndef LLVM_ANALYSIS_CALLGRAPH_H #define LLVM_ANALYSIS_CALLGRAPH_H -#include - #include "Support/GraphTraits.h" #include "Support/STLExtras.h" #include "llvm/Pass.h" diff --git a/include/llvm/Analysis/ConstantsScanner.h b/include/llvm/Analysis/ConstantsScanner.h index c3d112f27b9..8035409bbf9 100644 --- a/include/llvm/Analysis/ConstantsScanner.h +++ b/include/llvm/Analysis/ConstantsScanner.h @@ -9,8 +9,6 @@ #ifndef LLVM_ANALYSIS_CONSTANTSSCANNER_H #define LLVM_ANALYSIS_CONSTANTSSCANNER_H -#include - #include "llvm/Support/InstIterator.h" #include "llvm/Instruction.h" #include "Support/iterator" diff --git a/include/llvm/Analysis/DSGraph.h b/include/llvm/Analysis/DSGraph.h index c1f941c735b..9a897b2c97c 100644 --- a/include/llvm/Analysis/DSGraph.h +++ b/include/llvm/Analysis/DSGraph.h @@ -7,8 +7,6 @@ #ifndef LLVM_ANALYSIS_DSGRAPH_H #define LLVM_ANALYSIS_DSGRAPH_H -#include - #include "llvm/Analysis/DSNode.h" //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/DSGraphTraits.h b/include/llvm/Analysis/DSGraphTraits.h index 95cbbd7b0c9..7ea30c02c0d 100644 --- a/include/llvm/Analysis/DSGraphTraits.h +++ b/include/llvm/Analysis/DSGraphTraits.h @@ -9,8 +9,6 @@ #ifndef LLVM_ANALYSIS_DSGRAPHTRAITS_H #define LLVM_ANALYSIS_DSGRAPHTRAITS_H -#include - #include "llvm/Analysis/DSGraph.h" #include "Support/GraphTraits.h" #include "Support/iterator" diff --git a/include/llvm/Analysis/DSSupport.h b/include/llvm/Analysis/DSSupport.h index cc989f77361..1e886fe7c26 100644 --- a/include/llvm/Analysis/DSSupport.h +++ b/include/llvm/Analysis/DSSupport.h @@ -7,11 +7,10 @@ #ifndef LLVM_ANALYSIS_DSSUPPORT_H #define LLVM_ANALYSIS_DSSUPPORT_H -#include - #include #include #include +#include #include "Support/HashExtras.h" #include "Support/hash_set" diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h index fad56d966c3..ebcc3c5c645 100644 --- a/include/llvm/Analysis/DataStructure.h +++ b/include/llvm/Analysis/DataStructure.h @@ -7,8 +7,6 @@ #ifndef LLVM_ANALYSIS_DATA_STRUCTURE_H #define LLVM_ANALYSIS_DATA_STRUCTURE_H -#include - #include "llvm/Pass.h" #include "Support/HashExtras.h" #include "Support/hash_set" diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h index c1f941c735b..9a897b2c97c 100644 --- a/include/llvm/Analysis/DataStructure/DSGraph.h +++ b/include/llvm/Analysis/DataStructure/DSGraph.h @@ -7,8 +7,6 @@ #ifndef LLVM_ANALYSIS_DSGRAPH_H #define LLVM_ANALYSIS_DSGRAPH_H -#include - #include "llvm/Analysis/DSNode.h" //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/DataStructure/DSGraphTraits.h b/include/llvm/Analysis/DataStructure/DSGraphTraits.h index 95cbbd7b0c9..7ea30c02c0d 100644 --- a/include/llvm/Analysis/DataStructure/DSGraphTraits.h +++ b/include/llvm/Analysis/DataStructure/DSGraphTraits.h @@ -9,8 +9,6 @@ #ifndef LLVM_ANALYSIS_DSGRAPHTRAITS_H #define LLVM_ANALYSIS_DSGRAPHTRAITS_H -#include - #include "llvm/Analysis/DSGraph.h" #include "Support/GraphTraits.h" #include "Support/iterator" diff --git a/include/llvm/Analysis/DataStructure/DSSupport.h b/include/llvm/Analysis/DataStructure/DSSupport.h index cc989f77361..1e886fe7c26 100644 --- a/include/llvm/Analysis/DataStructure/DSSupport.h +++ b/include/llvm/Analysis/DataStructure/DSSupport.h @@ -7,11 +7,10 @@ #ifndef LLVM_ANALYSIS_DSSUPPORT_H #define LLVM_ANALYSIS_DSSUPPORT_H -#include - #include #include #include +#include #include "Support/HashExtras.h" #include "Support/hash_set" diff --git a/include/llvm/Analysis/DataStructure/DataStructure.h b/include/llvm/Analysis/DataStructure/DataStructure.h index fad56d966c3..ebcc3c5c645 100644 --- a/include/llvm/Analysis/DataStructure/DataStructure.h +++ b/include/llvm/Analysis/DataStructure/DataStructure.h @@ -7,8 +7,6 @@ #ifndef LLVM_ANALYSIS_DATA_STRUCTURE_H #define LLVM_ANALYSIS_DATA_STRUCTURE_H -#include - #include "llvm/Pass.h" #include "Support/HashExtras.h" #include "Support/hash_set" diff --git a/include/llvm/Analysis/DependenceGraph.h b/include/llvm/Analysis/DependenceGraph.h index 10013f7f4c1..65831f980c5 100644 --- a/include/llvm/Analysis/DependenceGraph.h +++ b/include/llvm/Analysis/DependenceGraph.h @@ -14,7 +14,6 @@ // //===----------------------------------------------------------------------===// - #ifndef LLVM_ANALYSIS_DEPENDENCEGRAPH_H #define LLVM_ANALYSIS_DEPENDENCEGRAPH_H @@ -22,7 +21,6 @@ #include #include #include - #include class Instruction; diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 3a4c4080a35..7881d82125b 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -20,7 +20,6 @@ #include "llvm/Pass.h" #include -#include class Instruction; template struct GraphTraits; diff --git a/include/llvm/Analysis/IPModRef.h b/include/llvm/Analysis/IPModRef.h index a32203308c7..eed264f9785 100644 --- a/include/llvm/Analysis/IPModRef.h +++ b/include/llvm/Analysis/IPModRef.h @@ -39,8 +39,6 @@ #ifndef LLVM_ANALYSIS_IPMODREF_H #define LLVM_ANALYSIS_IPMODREF_H -#include - #include "llvm/Pass.h" #include "Support/BitSetVector.h" #include "Support/hash_map" diff --git a/include/llvm/Analysis/InstForest.h b/include/llvm/Analysis/InstForest.h index 81b3506414e..56a918bd439 100644 --- a/include/llvm/Analysis/InstForest.h +++ b/include/llvm/Analysis/InstForest.h @@ -14,12 +14,9 @@ #ifndef LLVM_ANALYSIS_INSTFOREST_H #define LLVM_ANALYSIS_INSTFOREST_H -#include "llvm/Instruction.h" -#include "llvm/BasicBlock.h" #include "llvm/Function.h" #include "Support/Tree.h" #include -#include template class InstTreeNode; template class InstForest; diff --git a/include/llvm/Analysis/IntervalIterator.h b/include/llvm/Analysis/IntervalIterator.h index 6b500806918..09bfc92aeb2 100644 --- a/include/llvm/Analysis/IntervalIterator.h +++ b/include/llvm/Analysis/IntervalIterator.h @@ -28,12 +28,10 @@ #include "llvm/Analysis/IntervalPartition.h" #include "llvm/Function.h" -#include "llvm/BasicBlock.h" #include "llvm/Support/CFG.h" #include #include #include -#include // getNodeHeader - Given a source graph node and the source graph, return the // BasicBlock that is the header node. This is the opposite of diff --git a/include/llvm/Analysis/MemoryDepAnalysis.h b/include/llvm/Analysis/MemoryDepAnalysis.h index 71adc123a56..4263f395e55 100644 --- a/include/llvm/Analysis/MemoryDepAnalysis.h +++ b/include/llvm/Analysis/MemoryDepAnalysis.h @@ -7,6 +7,7 @@ // // The result of this pass is a DependenceGraph for each function // representing the memory-based data dependences between instructions. +// //===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_MEMORYDEPANALYSIS_H @@ -17,17 +18,11 @@ #include "llvm/Analysis/DataStructure.h" #include "llvm/Pass.h" #include "Support/TarjanSCCIterator.h" -#include "Support/NonCopyable.h" #include "Support/hash_map" -#include - class Instruction; -class Function; -class DSGraph; class ModRefTable; - ///--------------------------------------------------------------------------- /// class MemoryDepGraph: /// Dependence analysis for load/store/call instructions using IPModRef info diff --git a/include/llvm/Analysis/PgmDependenceGraph.h b/include/llvm/Analysis/PgmDependenceGraph.h index d5b2a148f28..25fa55f1fa9 100644 --- a/include/llvm/Analysis/PgmDependenceGraph.h +++ b/include/llvm/Analysis/PgmDependenceGraph.h @@ -26,6 +26,7 @@ // // class PgmDependenceGraph -- Interface to obtain PDGIterators for each // instruction. +// //===----------------------------------------------------------------------===// #ifndef LLVM_ANALYSIS_PGMDEPENDENCEGRAPH_H @@ -35,15 +36,9 @@ #include "llvm/Analysis/MemoryDepAnalysis.h" /* #include "llvm/Analysis/PostDominators.h" -- see below */ #include "llvm/Instruction.h" -#include "llvm/Value.h" #include "llvm/Pass.h" -#include "Support/NonCopyable.h" #include -#include - -class Instruction; -class Function; class DSGraph; class DependenceGraph; class PgmDependenceGraph; diff --git a/include/llvm/CodeGen/InstrForest.h b/include/llvm/CodeGen/InstrForest.h index d6eaf7673ad..0b623d125ee 100644 --- a/include/llvm/CodeGen/InstrForest.h +++ b/include/llvm/CodeGen/InstrForest.h @@ -21,10 +21,8 @@ #include "llvm/Instruction.h" #include "Support/HashExtras.h" -#include class Constant; -class BasicBlock; class Function; class InstrTreeNode; class InstrForest; diff --git a/include/llvm/CodeGen/InstrSelection.h b/include/llvm/CodeGen/InstrSelection.h index a305578bfbb..c1ed86ed436 100644 --- a/include/llvm/CodeGen/InstrSelection.h +++ b/include/llvm/CodeGen/InstrSelection.h @@ -8,7 +8,6 @@ #define LLVM_CODEGEN_INSTR_SELECTION_H #include "llvm/Instruction.h" -#include class Function; class InstrForest; class MachineInstr; diff --git a/include/llvm/CodeGen/LiveVariables.h b/include/llvm/CodeGen/LiveVariables.h index 881fce4b0dc..51d3e82e771 100644 --- a/include/llvm/CodeGen/LiveVariables.h +++ b/include/llvm/CodeGen/LiveVariables.h @@ -24,7 +24,6 @@ #include "llvm/CodeGen/MachineFunctionPass.h" #include -#include class MRegisterInfo; diff --git a/include/llvm/CodeGen/MachineCodeForInstruction.h b/include/llvm/CodeGen/MachineCodeForInstruction.h index 91b4dfdc5e2..25994a94a38 100644 --- a/include/llvm/CodeGen/MachineCodeForInstruction.h +++ b/include/llvm/CodeGen/MachineCodeForInstruction.h @@ -20,7 +20,6 @@ #include "Support/Annotation.h" #include -#include class MachineInstr; class Instruction; diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 3c2f9abc257..721b513c747 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -13,7 +13,6 @@ #include "Support/Annotation.h" #include "Support/iterator" #include -#include class Value; class Function; diff --git a/include/llvm/CodeGen/MachineInstrAnnot.h b/include/llvm/CodeGen/MachineInstrAnnot.h index b7e22d81383..e1902e77b38 100644 --- a/include/llvm/CodeGen/MachineInstrAnnot.h +++ b/include/llvm/CodeGen/MachineInstrAnnot.h @@ -10,8 +10,6 @@ #include "llvm/CodeGen/MachineInstr.h" #include "llvm/Target/TargetRegInfo.h" -#include - class Value; class TmpInstruction; class CallInst; diff --git a/include/llvm/CodeGen/SSARegMap.h b/include/llvm/CodeGen/SSARegMap.h index ced04354cf4..b1b00ac0491 100644 --- a/include/llvm/CodeGen/SSARegMap.h +++ b/include/llvm/CodeGen/SSARegMap.h @@ -11,9 +11,6 @@ #define LLVM_CODEGEN_SSAREGMAP_H #include "llvm/Target/MRegisterInfo.h" - -#include - class TargetRegisterClass; class SSARegMap { diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h index 322764797b3..a7ec6331bd5 100644 --- a/include/llvm/Constant.h +++ b/include/llvm/Constant.h @@ -7,7 +7,6 @@ #ifndef LLVM_CONSTANT_H #define LLVM_CONSTANT_H -#include #include "llvm/User.h" class Constant : public User { diff --git a/include/llvm/ConstantHandling.h b/include/llvm/ConstantHandling.h index 7589bb9a35c..2401ad7596b 100644 --- a/include/llvm/ConstantHandling.h +++ b/include/llvm/ConstantHandling.h @@ -33,8 +33,6 @@ #ifndef LLVM_CONSTANTHANDLING_H #define LLVM_CONSTANTHANDLING_H -#include - #include "llvm/Constants.h" #include "llvm/Type.h" class PointerType; diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 07d516bc173..77c39452d18 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -8,8 +8,6 @@ #ifndef LLVM_CONSTANTS_H #define LLVM_CONSTANTS_H -#include - #include "llvm/Constant.h" #include "Support/DataTypes.h" diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index bd44bd27200..76a4e0f8ac2 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -11,8 +11,6 @@ #ifndef LLVM_DERIVED_TYPES_H #define LLVM_DERIVED_TYPES_H -#include - #include "llvm/Type.h" class DerivedType : public Type { diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h index c32b15c2d5a..6fb74a3dbef 100644 --- a/include/llvm/GlobalVariable.h +++ b/include/llvm/GlobalVariable.h @@ -13,8 +13,6 @@ #ifndef LLVM_GLOBAL_VARIABLE_H #define LLVM_GLOBAL_VARIABLE_H -#include - #include "llvm/GlobalValue.h" class Module; class Constant; diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index aaf2d72a30a..5f61b2d4108 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -8,8 +8,6 @@ #ifndef LLVM_INSTRUCTION_H #define LLVM_INSTRUCTION_H -#include - #include "llvm/User.h" template struct ilist_traits; template - #include #include #include diff --git a/include/llvm/PassAnalysisSupport.h b/include/llvm/PassAnalysisSupport.h index 5b382703be2..97588c3ae34 100644 --- a/include/llvm/PassAnalysisSupport.h +++ b/include/llvm/PassAnalysisSupport.h @@ -14,8 +14,6 @@ // No need to include Pass.h, we are being included by it! -#include - //===----------------------------------------------------------------------===// // AnalysisUsage - Represent the analysis usage information of a pass. This // tracks analyses that the pass REQUIRES (must available when the pass runs), diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h index 2f6c316227a..16115cf5f35 100644 --- a/include/llvm/PassSupport.h +++ b/include/llvm/PassSupport.h @@ -14,8 +14,6 @@ #ifndef LLVM_PASS_SUPPORT_H #define LLVM_PASS_SUPPORT_H -#include - // No need to include Pass.h, we are being included by it! class TargetMachine; diff --git a/include/llvm/Support/CFG.h b/include/llvm/Support/CFG.h index 7e2774a6883..aab0db9712b 100644 --- a/include/llvm/Support/CFG.h +++ b/include/llvm/Support/CFG.h @@ -13,8 +13,6 @@ #include "llvm/InstrTypes.h" #include "Support/iterator" -#include - //===--------------------------------------------------------------------===// // BasicBlock pred_iterator definition //===--------------------------------------------------------------------===// diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index 728bb146783..ed2559bd2b9 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -18,7 +18,6 @@ #include #include #include "boost/type_traits/object_traits.hpp" - #include /// cl Namespace - This namespace contains all of the command line option diff --git a/include/llvm/Support/InstVisitor.h b/include/llvm/Support/InstVisitor.h index e4508a366f5..6004aac88fd 100644 --- a/include/llvm/Support/InstVisitor.h +++ b/include/llvm/Support/InstVisitor.h @@ -44,7 +44,6 @@ #define LLVM_SUPPORT_INSTVISITOR_H #include "llvm/Instruction.h" -#include class Module; diff --git a/include/llvm/Support/PassNameParser.h b/include/llvm/Support/PassNameParser.h index a1d525f21a3..c324161f308 100644 --- a/include/llvm/Support/PassNameParser.h +++ b/include/llvm/Support/PassNameParser.h @@ -20,7 +20,6 @@ #include "llvm/Pass.h" #include #include -#include //===----------------------------------------------------------------------===// // PassNameParser class - Make use of the pass registration mechanism to diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h index 40ab643928a..5cacadaf1ce 100644 --- a/include/llvm/Support/Timer.h +++ b/include/llvm/Support/Timer.h @@ -28,7 +28,6 @@ #include #include #include - #include class TimerGroup; @@ -64,7 +63,7 @@ public: PeakMemBase = T.PeakMemBase; Name = T.Name; Started = T.Started; - assert (TG == T.TG && "Can only assign timers in the same TimerGroup!"); + assert(TG == T.TG && "Can only assign timers in the same TimerGroup!"); return *this; } diff --git a/include/llvm/SymbolTable.h b/include/llvm/SymbolTable.h index 4f4784743ec..fc5f470a65f 100644 --- a/include/llvm/SymbolTable.h +++ b/include/llvm/SymbolTable.h @@ -16,8 +16,6 @@ #ifndef LLVM_SYMBOL_TABLE_H #define LLVM_SYMBOL_TABLE_H -#include - #include "llvm/Value.h" #include diff --git a/include/llvm/Target/MRegisterInfo.h b/include/llvm/Target/MRegisterInfo.h index 41b01546ede..bfe1db6761e 100644 --- a/include/llvm/Target/MRegisterInfo.h +++ b/include/llvm/Target/MRegisterInfo.h @@ -10,7 +10,6 @@ #define LLVM_TARGET_MREGISTERINFO_H #include "llvm/CodeGen/MachineBasicBlock.h" -#include class Type; class MachineFunction; diff --git a/include/llvm/Target/TargetSchedInfo.h b/include/llvm/Target/TargetSchedInfo.h index b978cdfcccd..5d42d40bcbd 100644 --- a/include/llvm/Target/TargetSchedInfo.h +++ b/include/llvm/Target/TargetSchedInfo.h @@ -10,7 +10,6 @@ #include "llvm/Target/TargetInstrInfo.h" #include "Support/hash_map" #include -#include typedef long long cycles_t; static const cycles_t HUGE_LATENCY = ~((long long) 1 << (sizeof(cycles_t)-2)); diff --git a/include/llvm/User.h b/include/llvm/User.h index bf398f4c80d..cf0f53c4ad8 100644 --- a/include/llvm/User.h +++ b/include/llvm/User.h @@ -12,8 +12,6 @@ #ifndef LLVM_USER_H #define LLVM_USER_H -#include - #include "llvm/Value.h" class User : public Value { diff --git a/include/llvm/iOther.h b/include/llvm/iOther.h index 123aa0ac708..45b8db367d8 100644 --- a/include/llvm/iOther.h +++ b/include/llvm/iOther.h @@ -8,8 +8,6 @@ #ifndef LLVM_IOTHER_H #define LLVM_IOTHER_H -#include - #include "llvm/InstrTypes.h" //===----------------------------------------------------------------------===// diff --git a/include/llvm/iPHINode.h b/include/llvm/iPHINode.h index 1f6e5582d22..eba5a735542 100644 --- a/include/llvm/iPHINode.h +++ b/include/llvm/iPHINode.h @@ -7,8 +7,6 @@ #ifndef LLVM_IPHINODE_H #define LLVM_IPHINODE_H -#include - #include "llvm/Instruction.h" class BasicBlock; diff --git a/include/llvm/iTerminators.h b/include/llvm/iTerminators.h index ac8a1b39b8c..16cfb19658a 100644 --- a/include/llvm/iTerminators.h +++ b/include/llvm/iTerminators.h @@ -9,8 +9,6 @@ #ifndef LLVM_ITERMINATORS_H #define LLVM_ITERMINATORS_H -#include - #include "llvm/InstrTypes.h" //===--------------------------------------------------------------------------- diff --git a/lib/CodeGen/RegAlloc/IGNode.h b/lib/CodeGen/RegAlloc/IGNode.h index 3b1344b85ed..2b782436aad 100644 --- a/lib/CodeGen/RegAlloc/IGNode.h +++ b/lib/CodeGen/RegAlloc/IGNode.h @@ -26,7 +26,6 @@ #define IG_NODE_H #include "llvm/CodeGen/LiveRange.h" -#include class RegClass; //---------------------------------------------------------------------------- diff --git a/lib/CodeGen/RegAlloc/LiveRange.h b/lib/CodeGen/RegAlloc/LiveRange.h index deab75d0746..588b7b526e0 100644 --- a/lib/CodeGen/RegAlloc/LiveRange.h +++ b/lib/CodeGen/RegAlloc/LiveRange.h @@ -1,4 +1,4 @@ -//===-- LiveRange.h - Store info about a live range --------------*- C++ -*--=// +//===-- LiveRange.h - Store info about a live range -------------*- C++ -*-===// // // Implements a live range using a ValueSet. A LiveRange is a simple set // of Values. @@ -14,11 +14,8 @@ #include "llvm/CodeGen/ValueSet.h" #include "llvm/Value.h" -#include - class RegClass; class IGNode; -class Type; class LiveRange : public ValueSet { RegClass *MyRegClass; // register classs (e.g., int, FP) for this LR diff --git a/lib/Target/SparcV9/MachineCodeForInstruction.h b/lib/Target/SparcV9/MachineCodeForInstruction.h index 91b4dfdc5e2..25994a94a38 100644 --- a/lib/Target/SparcV9/MachineCodeForInstruction.h +++ b/lib/Target/SparcV9/MachineCodeForInstruction.h @@ -20,7 +20,6 @@ #include "Support/Annotation.h" #include -#include class MachineInstr; class Instruction; diff --git a/lib/Target/SparcV9/MachineInstrAnnot.h b/lib/Target/SparcV9/MachineInstrAnnot.h index b7e22d81383..e1902e77b38 100644 --- a/lib/Target/SparcV9/MachineInstrAnnot.h +++ b/lib/Target/SparcV9/MachineInstrAnnot.h @@ -10,8 +10,6 @@ #include "llvm/CodeGen/MachineInstr.h" #include "llvm/Target/TargetRegInfo.h" -#include - class Value; class TmpInstruction; class CallInst; diff --git a/lib/Target/SparcV9/RegAlloc/IGNode.h b/lib/Target/SparcV9/RegAlloc/IGNode.h index 3b1344b85ed..2b782436aad 100644 --- a/lib/Target/SparcV9/RegAlloc/IGNode.h +++ b/lib/Target/SparcV9/RegAlloc/IGNode.h @@ -26,7 +26,6 @@ #define IG_NODE_H #include "llvm/CodeGen/LiveRange.h" -#include class RegClass; //---------------------------------------------------------------------------- diff --git a/lib/Target/SparcV9/RegAlloc/LiveRange.h b/lib/Target/SparcV9/RegAlloc/LiveRange.h index deab75d0746..588b7b526e0 100644 --- a/lib/Target/SparcV9/RegAlloc/LiveRange.h +++ b/lib/Target/SparcV9/RegAlloc/LiveRange.h @@ -1,4 +1,4 @@ -//===-- LiveRange.h - Store info about a live range --------------*- C++ -*--=// +//===-- LiveRange.h - Store info about a live range -------------*- C++ -*-===// // // Implements a live range using a ValueSet. A LiveRange is a simple set // of Values. @@ -14,11 +14,8 @@ #include "llvm/CodeGen/ValueSet.h" #include "llvm/Value.h" -#include - class RegClass; class IGNode; -class Type; class LiveRange : public ValueSet { RegClass *MyRegClass; // register classs (e.g., int, FP) for this LR diff --git a/lib/VMCore/ConstantFold.h b/lib/VMCore/ConstantFold.h index 7589bb9a35c..2401ad7596b 100644 --- a/lib/VMCore/ConstantFold.h +++ b/lib/VMCore/ConstantFold.h @@ -33,8 +33,6 @@ #ifndef LLVM_CONSTANTHANDLING_H #define LLVM_CONSTANTHANDLING_H -#include - #include "llvm/Constants.h" #include "llvm/Type.h" class PointerType; diff --git a/lib/VMCore/ConstantFolding.h b/lib/VMCore/ConstantFolding.h index 7589bb9a35c..2401ad7596b 100644 --- a/lib/VMCore/ConstantFolding.h +++ b/lib/VMCore/ConstantFolding.h @@ -33,8 +33,6 @@ #ifndef LLVM_CONSTANTHANDLING_H #define LLVM_CONSTANTHANDLING_H -#include - #include "llvm/Constants.h" #include "llvm/Type.h" class PointerType;