From c6f3ae5c66c8e0dab6a2bd9601d0e253ef9ba794 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 29 Apr 2002 17:42:12 +0000 Subject: [PATCH] Eliminate duplicate or unneccesary #include's git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2397 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Bytecode/Writer.h | 4 ++-- include/llvm/CodeGen/RegClass.h | 2 -- lib/Analysis/IPA/FindUnsafePointerTypes.cpp | 1 - lib/Analysis/IPA/FindUsedTypes.cpp | 1 - lib/Analysis/LiveVar/BBLiveVar.cpp | 1 - lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp | 1 - lib/Analysis/PostDominators.cpp | 1 - lib/AsmParser/Parser.cpp | 1 - lib/AsmParser/ParserInternals.h | 3 --- lib/AsmParser/llvmAsmParser.y | 5 ----- lib/Bytecode/Reader/ConstantReader.cpp | 1 - lib/Bytecode/Reader/Reader.cpp | 1 - lib/Bytecode/Writer/InstructionWriter.cpp | 1 - lib/Bytecode/Writer/WriterInternals.h | 1 - lib/CodeGen/InstrSched/InstrScheduling.cpp | 6 +----- lib/CodeGen/InstrSched/SchedGraph.cpp | 2 -- lib/CodeGen/InstrSched/SchedGraph.h | 1 - lib/CodeGen/InstrSched/SchedPriorities.cpp | 1 - lib/CodeGen/InstrSelection/InstrSelection.cpp | 1 - lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp | 1 - lib/CodeGen/MachineCodeForInstruction.cpp | 1 - lib/CodeGen/RegAlloc/IGNode.h | 1 - lib/CodeGen/RegAlloc/InterferenceGraph.cpp | 2 +- lib/CodeGen/RegAlloc/LiveRangeInfo.cpp | 2 +- lib/CodeGen/RegAlloc/PhyRegAlloc.cpp | 1 + lib/CodeGen/RegAlloc/RegClass.cpp | 2 +- lib/CodeGen/RegAlloc/RegClass.h | 2 -- lib/Support/CommandLine.cpp | 1 - lib/Target/SparcV9/InstrSched/InstrScheduling.cpp | 6 +----- lib/Target/SparcV9/InstrSched/SchedGraph.cpp | 2 -- lib/Target/SparcV9/InstrSched/SchedGraph.h | 1 - lib/Target/SparcV9/InstrSched/SchedPriorities.cpp | 1 - lib/Target/SparcV9/InstrSelection/InstrSelection.cpp | 1 - lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp | 1 - lib/Target/SparcV9/LiveVar/BBLiveVar.cpp | 1 - lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp | 1 - lib/Target/SparcV9/RegAlloc/IGNode.h | 1 - lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp | 2 +- lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp | 2 +- lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp | 1 + lib/Target/SparcV9/RegAlloc/RegClass.cpp | 2 +- lib/Target/SparcV9/RegAlloc/RegClass.h | 2 -- lib/Target/SparcV9/SparcV9AsmPrinter.cpp | 2 -- lib/Target/SparcV9/SparcV9InstrInfo.cpp | 1 - lib/Target/SparcV9/SparcV9Internals.h | 1 - lib/Target/SparcV9/SparcV9RegClassInfo.cpp | 2 +- lib/Target/SparcV9/SparcV9RegInfo.cpp | 1 + lib/Transforms/ExprTypeConvert.cpp | 3 --- lib/Transforms/HoistPHIConstants.cpp | 2 -- lib/Transforms/IPO/DeadTypeElimination.cpp | 1 - lib/Transforms/IPO/GlobalDCE.cpp | 2 -- lib/Transforms/IPO/InlineSimple.cpp | 1 - lib/Transforms/IPO/OldPoolAllocate.cpp | 1 - .../Instrumentation/ProfilePaths/ProfilePaths.cpp | 3 --- lib/Transforms/LevelRaise.cpp | 2 -- lib/Transforms/Scalar/ADCE.cpp | 1 - lib/Transforms/Scalar/DCE.cpp | 2 -- lib/Transforms/Scalar/GCSE.cpp | 2 -- lib/Transforms/Scalar/IndVarSimplify.cpp | 2 -- lib/Transforms/Scalar/InductionVars.cpp | 5 +---- lib/Transforms/Scalar/InstructionCombining.cpp | 1 - lib/Transforms/Scalar/SCCP.cpp | 3 --- lib/Transforms/Utils/LowerAllocations.cpp | 2 -- lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 1 - lib/VMCore/AsmWriter.cpp | 1 - lib/VMCore/BasicBlock.cpp | 1 - lib/VMCore/Dominators.cpp | 1 - lib/VMCore/Function.cpp | 1 - lib/VMCore/Module.cpp | 1 - lib/VMCore/Verifier.cpp | 2 -- support/lib/Support/CommandLine.cpp | 1 - tools/analyze/analyze.cpp | 3 --- tools/as/as.cpp | 1 - tools/dis/dis.cpp | 1 - tools/gccas/gccas.cpp | 1 - tools/llc/llc.cpp | 1 - tools/llvm-as/as.cpp | 1 - tools/llvm-as/llvm-as.cpp | 1 - tools/llvm-dis/dis.cpp | 1 - tools/llvm-dis/llvm-dis.cpp | 1 - 80 files changed, 15 insertions(+), 117 deletions(-) diff --git a/include/llvm/Bytecode/Writer.h b/include/llvm/Bytecode/Writer.h index e28ea77f07b..b4d5e78fd04 100644 --- a/include/llvm/Bytecode/Writer.h +++ b/include/llvm/Bytecode/Writer.h @@ -17,9 +17,9 @@ #ifndef LLVM_BYTECODE_WRITER_H #define LLVM_BYTECODE_WRITER_H -#include +#include class Module; -void WriteBytecodeToFile(const Module *C, ostream &Out); +void WriteBytecodeToFile(const Module *C, std::ostream &Out); #endif diff --git a/include/llvm/CodeGen/RegClass.h b/include/llvm/CodeGen/RegClass.h index 3db72b73639..c93d6961e0b 100644 --- a/include/llvm/CodeGen/RegClass.h +++ b/include/llvm/CodeGen/RegClass.h @@ -8,11 +8,9 @@ #ifndef REG_CLASS_H #define REG_CLASS_H -#include "llvm/CodeGen/IGNode.h" #include "llvm/CodeGen/InterferenceGraph.h" #include "llvm/Target/MachineRegInfo.h" #include -#include class MachineRegClassInfo; typedef std::vector ReservedColorListType; diff --git a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp index 9f908c6c716..627c7ff5f37 100644 --- a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp +++ b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp @@ -20,7 +20,6 @@ #include "llvm/Assembly/CachedWriter.h" #include "llvm/Type.h" #include "llvm/Instruction.h" -#include "llvm/Function.h" #include "llvm/Module.h" #include "llvm/Support/InstIterator.h" #include "Support/CommandLine.h" diff --git a/lib/Analysis/IPA/FindUsedTypes.cpp b/lib/Analysis/IPA/FindUsedTypes.cpp index 86061d8610c..b4897a265a8 100644 --- a/lib/Analysis/IPA/FindUsedTypes.cpp +++ b/lib/Analysis/IPA/FindUsedTypes.cpp @@ -10,7 +10,6 @@ #include "llvm/GlobalVariable.h" #include "llvm/DerivedTypes.h" #include "llvm/Module.h" -#include "llvm/Function.h" #include "llvm/Instruction.h" #include "llvm/Support/InstIterator.h" diff --git a/lib/Analysis/LiveVar/BBLiveVar.cpp b/lib/Analysis/LiveVar/BBLiveVar.cpp index 958f7d7c662..7d735b79e40 100644 --- a/lib/Analysis/LiveVar/BBLiveVar.cpp +++ b/lib/Analysis/LiveVar/BBLiveVar.cpp @@ -7,7 +7,6 @@ #include "BBLiveVar.h" #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h" #include "llvm/CodeGen/MachineInstr.h" -#include "llvm/BasicBlock.h" #include "llvm/Support/CFG.h" #include "Support/SetOperations.h" #include diff --git a/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp b/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp index 58d4691b763..295a9ed5e5e 100644 --- a/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp +++ b/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp @@ -8,7 +8,6 @@ #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h" #include "BBLiveVar.h" #include "llvm/CodeGen/MachineInstr.h" -#include "llvm/BasicBlock.h" #include "llvm/Support/CFG.h" #include "Support/PostOrderIterator.h" #include "Support/SetOperations.h" diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp index 30d170b6698..f542d112b87 100644 --- a/lib/Analysis/PostDominators.cpp +++ b/lib/Analysis/PostDominators.cpp @@ -7,7 +7,6 @@ #include "llvm/Analysis/Dominators.h" #include "llvm/Transforms/UnifyFunctionExitNodes.h" -#include "llvm/Function.h" #include "llvm/Support/CFG.h" #include "Support/DepthFirstIterator.h" #include "Support/STLExtras.h" diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp index a99849d31b4..19632dd1310 100644 --- a/lib/AsmParser/Parser.cpp +++ b/lib/AsmParser/Parser.cpp @@ -7,7 +7,6 @@ #include "llvm/Analysis/Verifier.h" #include "llvm/Module.h" #include "ParserInternals.h" -#include // for sprintf using std::string; // The useful interface defined by this file... Parse an ascii file, and return diff --git a/lib/AsmParser/ParserInternals.h b/lib/AsmParser/ParserInternals.h index 3571138a0d2..656d718e385 100644 --- a/lib/AsmParser/ParserInternals.h +++ b/lib/AsmParser/ParserInternals.h @@ -8,10 +8,7 @@ #ifndef PARSER_INTERNALS_H #define PARSER_INTERNALS_H -#include #define __STDC_LIMIT_MACROS - -#include "llvm/InstrTypes.h" #include "llvm/BasicBlock.h" #include "llvm/Constants.h" #include "llvm/iOther.h" diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 776e8c52a60..ad5e57e04ae 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -6,13 +6,9 @@ %{ #include "ParserInternals.h" -#include "llvm/Assembly/Parser.h" #include "llvm/SymbolTable.h" #include "llvm/Module.h" #include "llvm/GlobalVariable.h" -#include "llvm/Function.h" -#include "llvm/BasicBlock.h" -#include "llvm/DerivedTypes.h" #include "llvm/iTerminators.h" #include "llvm/iMemory.h" #include "llvm/iPHINode.h" @@ -22,7 +18,6 @@ #include #include // Get definition of pair class #include -#include // This embarasment is due to our flex lexer... #include using std::list; using std::vector; diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index 4c7ebb119ac..eb0cadc8ec8 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/lib/Bytecode/Reader/ConstantReader.cpp @@ -10,7 +10,6 @@ #include "ReaderInternals.h" #include "llvm/Module.h" -#include "llvm/BasicBlock.h" #include "llvm/Constants.h" #include "llvm/GlobalVariable.h" #include diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 7418c81bbea..70a6ae97f3e 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -15,7 +15,6 @@ #include "llvm/Bytecode/Format.h" #include "llvm/GlobalVariable.h" #include "llvm/Module.h" -#include "llvm/BasicBlock.h" #include "llvm/Constants.h" #include "llvm/iPHINode.h" #include "llvm/iOther.h" diff --git a/lib/Bytecode/Writer/InstructionWriter.cpp b/lib/Bytecode/Writer/InstructionWriter.cpp index c32c6b476ff..2c1ce975bcf 100644 --- a/lib/Bytecode/Writer/InstructionWriter.cpp +++ b/lib/Bytecode/Writer/InstructionWriter.cpp @@ -13,7 +13,6 @@ #include "llvm/Module.h" #include "llvm/Function.h" #include "llvm/BasicBlock.h" -#include "llvm/Instruction.h" #include "llvm/DerivedTypes.h" #include "llvm/iOther.h" #include "llvm/iTerminators.h" diff --git a/lib/Bytecode/Writer/WriterInternals.h b/lib/Bytecode/Writer/WriterInternals.h index 73884bbdcc4..bd4a3288268 100644 --- a/lib/Bytecode/Writer/WriterInternals.h +++ b/lib/Bytecode/Writer/WriterInternals.h @@ -17,7 +17,6 @@ #include "llvm/Bytecode/Primitives.h" #include "llvm/SlotCalculator.h" #include "llvm/Instruction.h" -#include class BytecodeWriter { std::deque &Out; diff --git a/lib/CodeGen/InstrSched/InstrScheduling.cpp b/lib/CodeGen/InstrSched/InstrScheduling.cpp index b0422797475..d219ef6b6df 100644 --- a/lib/CodeGen/InstrSched/InstrScheduling.cpp +++ b/lib/CodeGen/InstrSched/InstrScheduling.cpp @@ -5,7 +5,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/CodeGen/InstrScheduling.h" +#include "SchedPriorities.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineCodeForMethod.h" @@ -13,11 +13,7 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/BasicBlock.h" #include "llvm/Instruction.h" -#include "SchedPriorities.h" -#include #include -#include -#include using std::cerr; using std::vector; diff --git a/lib/CodeGen/InstrSched/SchedGraph.cpp b/lib/CodeGen/InstrSched/SchedGraph.cpp index 28679bfbdc8..0629f8c75fb 100644 --- a/lib/CodeGen/InstrSched/SchedGraph.cpp +++ b/lib/CodeGen/InstrSched/SchedGraph.cpp @@ -14,9 +14,7 @@ #include "SchedGraph.h" #include "llvm/CodeGen/InstrSelection.h" -#include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" -#include "llvm/Target/MachineInstrInfo.h" #include "llvm/Target/MachineRegInfo.h" #include "llvm/Target/TargetMachine.h" #include "llvm/BasicBlock.h" diff --git a/lib/CodeGen/InstrSched/SchedGraph.h b/lib/CodeGen/InstrSched/SchedGraph.h index 8a8a523f004..441a46c0e5e 100644 --- a/lib/CodeGen/InstrSched/SchedGraph.h +++ b/lib/CodeGen/InstrSched/SchedGraph.h @@ -20,7 +20,6 @@ #define LLVM_CODEGEN_SCHEDGRAPH_H #include "llvm/CodeGen/MachineInstr.h" -#include "Support/NonCopyable.h" #include "Support/HashExtras.h" #include "Support/GraphTraits.h" diff --git a/lib/CodeGen/InstrSched/SchedPriorities.cpp b/lib/CodeGen/InstrSched/SchedPriorities.cpp index a4480e88657..aba49bd54c1 100644 --- a/lib/CodeGen/InstrSched/SchedPriorities.cpp +++ b/lib/CodeGen/InstrSched/SchedPriorities.cpp @@ -22,7 +22,6 @@ #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h" #include "llvm/Support/CFG.h" #include "Support/PostOrderIterator.h" -#include using std::cerr; SchedPriorities::SchedPriorities(const Function *, const SchedGraph *G, diff --git a/lib/CodeGen/InstrSelection/InstrSelection.cpp b/lib/CodeGen/InstrSelection/InstrSelection.cpp index 583df38360a..1724ce44896 100644 --- a/lib/CodeGen/InstrSelection/InstrSelection.cpp +++ b/lib/CodeGen/InstrSelection/InstrSelection.cpp @@ -16,7 +16,6 @@ #include "llvm/CodeGen/InstrSelection.h" #include "llvm/CodeGen/InstrSelectionSupport.h" -#include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/InstrForest.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineCodeForMethod.h" diff --git a/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp index c042e368c9d..d06ac172db0 100644 --- a/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp +++ b/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp @@ -13,7 +13,6 @@ #include "llvm/CodeGen/InstrSelectionSupport.h" #include "llvm/CodeGen/InstrSelection.h" -#include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineCodeForMethod.h" #include "llvm/CodeGen/InstrForest.h" diff --git a/lib/CodeGen/MachineCodeForInstruction.cpp b/lib/CodeGen/MachineCodeForInstruction.cpp index a4ebbec187f..98871a7e85b 100644 --- a/lib/CodeGen/MachineCodeForInstruction.cpp +++ b/lib/CodeGen/MachineCodeForInstruction.cpp @@ -19,7 +19,6 @@ #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/InstrSelection.h" -#include "llvm/Instruction.h" static AnnotationID MCFI_AID( AnnotationManager::getID("CodeGen::MachineCodeForInstruction")); diff --git a/lib/CodeGen/RegAlloc/IGNode.h b/lib/CodeGen/RegAlloc/IGNode.h index 177800c5bb9..bcf850f68b3 100644 --- a/lib/CodeGen/RegAlloc/IGNode.h +++ b/lib/CodeGen/RegAlloc/IGNode.h @@ -25,7 +25,6 @@ #ifndef IG_NODE_H #define IG_NODE_H -#include "llvm/CodeGen/RegAllocCommon.h" #include "llvm/CodeGen/LiveRange.h" class LiveRange; class RegClass; diff --git a/lib/CodeGen/RegAlloc/InterferenceGraph.cpp b/lib/CodeGen/RegAlloc/InterferenceGraph.cpp index c90ae4ae241..412f35fe932 100644 --- a/lib/CodeGen/RegAlloc/InterferenceGraph.cpp +++ b/lib/CodeGen/RegAlloc/InterferenceGraph.cpp @@ -1,6 +1,6 @@ #include "llvm/CodeGen/InterferenceGraph.h" #include "Support/STLExtras.h" -#include +#include "llvm/CodeGen/RegAllocCommon.h" #include using std::cerr; diff --git a/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp b/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp index fb29af2bf19..6661eca8011 100644 --- a/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp +++ b/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp @@ -5,7 +5,7 @@ #include "llvm/Function.h" #include "llvm/BasicBlock.h" #include "Support/SetOperations.h" -#include +#include "llvm/CodeGen/RegAllocCommon.h" using std::cerr; LiveRangeInfo::LiveRangeInfo(const Function *F, const TargetMachine &tm, diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index b783255699f..d54229e838f 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp @@ -21,6 +21,7 @@ #include "llvm/BasicBlock.h" #include "llvm/Function.h" #include "llvm/Type.h" +#include "llvm/CodeGen/RegAllocCommon.h" #include #include using std::cerr; diff --git a/lib/CodeGen/RegAlloc/RegClass.cpp b/lib/CodeGen/RegAlloc/RegClass.cpp index 607a4daf62d..249b8db2664 100644 --- a/lib/CodeGen/RegAlloc/RegClass.cpp +++ b/lib/CodeGen/RegAlloc/RegClass.cpp @@ -1,5 +1,5 @@ #include "llvm/CodeGen/RegClass.h" -#include +#include "llvm/CodeGen/RegAllocCommon.h" using std::cerr; //---------------------------------------------------------------------------- diff --git a/lib/CodeGen/RegAlloc/RegClass.h b/lib/CodeGen/RegAlloc/RegClass.h index 3db72b73639..c93d6961e0b 100644 --- a/lib/CodeGen/RegAlloc/RegClass.h +++ b/lib/CodeGen/RegAlloc/RegClass.h @@ -8,11 +8,9 @@ #ifndef REG_CLASS_H #define REG_CLASS_H -#include "llvm/CodeGen/IGNode.h" #include "llvm/CodeGen/InterferenceGraph.h" #include "llvm/Target/MachineRegInfo.h" #include -#include class MachineRegClassInfo; typedef std::vector ReservedColorListType; diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 8633bef9340..194dd33b27e 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -11,7 +11,6 @@ #include "Support/CommandLine.h" #include "Support/STLExtras.h" -#include #include #include #include diff --git a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp index b0422797475..d219ef6b6df 100644 --- a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp +++ b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp @@ -5,7 +5,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/CodeGen/InstrScheduling.h" +#include "SchedPriorities.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineCodeForMethod.h" @@ -13,11 +13,7 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/BasicBlock.h" #include "llvm/Instruction.h" -#include "SchedPriorities.h" -#include #include -#include -#include using std::cerr; using std::vector; diff --git a/lib/Target/SparcV9/InstrSched/SchedGraph.cpp b/lib/Target/SparcV9/InstrSched/SchedGraph.cpp index 28679bfbdc8..0629f8c75fb 100644 --- a/lib/Target/SparcV9/InstrSched/SchedGraph.cpp +++ b/lib/Target/SparcV9/InstrSched/SchedGraph.cpp @@ -14,9 +14,7 @@ #include "SchedGraph.h" #include "llvm/CodeGen/InstrSelection.h" -#include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" -#include "llvm/Target/MachineInstrInfo.h" #include "llvm/Target/MachineRegInfo.h" #include "llvm/Target/TargetMachine.h" #include "llvm/BasicBlock.h" diff --git a/lib/Target/SparcV9/InstrSched/SchedGraph.h b/lib/Target/SparcV9/InstrSched/SchedGraph.h index 8a8a523f004..441a46c0e5e 100644 --- a/lib/Target/SparcV9/InstrSched/SchedGraph.h +++ b/lib/Target/SparcV9/InstrSched/SchedGraph.h @@ -20,7 +20,6 @@ #define LLVM_CODEGEN_SCHEDGRAPH_H #include "llvm/CodeGen/MachineInstr.h" -#include "Support/NonCopyable.h" #include "Support/HashExtras.h" #include "Support/GraphTraits.h" diff --git a/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp b/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp index a4480e88657..aba49bd54c1 100644 --- a/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp +++ b/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp @@ -22,7 +22,6 @@ #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h" #include "llvm/Support/CFG.h" #include "Support/PostOrderIterator.h" -#include using std::cerr; SchedPriorities::SchedPriorities(const Function *, const SchedGraph *G, diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp index 583df38360a..1724ce44896 100644 --- a/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp +++ b/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp @@ -16,7 +16,6 @@ #include "llvm/CodeGen/InstrSelection.h" #include "llvm/CodeGen/InstrSelectionSupport.h" -#include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/InstrForest.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineCodeForMethod.h" diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp index c042e368c9d..d06ac172db0 100644 --- a/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp +++ b/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp @@ -13,7 +13,6 @@ #include "llvm/CodeGen/InstrSelectionSupport.h" #include "llvm/CodeGen/InstrSelection.h" -#include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineCodeForMethod.h" #include "llvm/CodeGen/InstrForest.h" diff --git a/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp b/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp index 958f7d7c662..7d735b79e40 100644 --- a/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp +++ b/lib/Target/SparcV9/LiveVar/BBLiveVar.cpp @@ -7,7 +7,6 @@ #include "BBLiveVar.h" #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h" #include "llvm/CodeGen/MachineInstr.h" -#include "llvm/BasicBlock.h" #include "llvm/Support/CFG.h" #include "Support/SetOperations.h" #include diff --git a/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp b/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp index 58d4691b763..295a9ed5e5e 100644 --- a/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp +++ b/lib/Target/SparcV9/LiveVar/FunctionLiveVarInfo.cpp @@ -8,7 +8,6 @@ #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h" #include "BBLiveVar.h" #include "llvm/CodeGen/MachineInstr.h" -#include "llvm/BasicBlock.h" #include "llvm/Support/CFG.h" #include "Support/PostOrderIterator.h" #include "Support/SetOperations.h" diff --git a/lib/Target/SparcV9/RegAlloc/IGNode.h b/lib/Target/SparcV9/RegAlloc/IGNode.h index 177800c5bb9..bcf850f68b3 100644 --- a/lib/Target/SparcV9/RegAlloc/IGNode.h +++ b/lib/Target/SparcV9/RegAlloc/IGNode.h @@ -25,7 +25,6 @@ #ifndef IG_NODE_H #define IG_NODE_H -#include "llvm/CodeGen/RegAllocCommon.h" #include "llvm/CodeGen/LiveRange.h" class LiveRange; class RegClass; diff --git a/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp b/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp index c90ae4ae241..412f35fe932 100644 --- a/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp +++ b/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp @@ -1,6 +1,6 @@ #include "llvm/CodeGen/InterferenceGraph.h" #include "Support/STLExtras.h" -#include +#include "llvm/CodeGen/RegAllocCommon.h" #include using std::cerr; diff --git a/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp b/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp index fb29af2bf19..6661eca8011 100644 --- a/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp +++ b/lib/Target/SparcV9/RegAlloc/LiveRangeInfo.cpp @@ -5,7 +5,7 @@ #include "llvm/Function.h" #include "llvm/BasicBlock.h" #include "Support/SetOperations.h" -#include +#include "llvm/CodeGen/RegAllocCommon.h" using std::cerr; LiveRangeInfo::LiveRangeInfo(const Function *F, const TargetMachine &tm, diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp index b783255699f..d54229e838f 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp @@ -21,6 +21,7 @@ #include "llvm/BasicBlock.h" #include "llvm/Function.h" #include "llvm/Type.h" +#include "llvm/CodeGen/RegAllocCommon.h" #include #include using std::cerr; diff --git a/lib/Target/SparcV9/RegAlloc/RegClass.cpp b/lib/Target/SparcV9/RegAlloc/RegClass.cpp index 607a4daf62d..249b8db2664 100644 --- a/lib/Target/SparcV9/RegAlloc/RegClass.cpp +++ b/lib/Target/SparcV9/RegAlloc/RegClass.cpp @@ -1,5 +1,5 @@ #include "llvm/CodeGen/RegClass.h" -#include +#include "llvm/CodeGen/RegAllocCommon.h" using std::cerr; //---------------------------------------------------------------------------- diff --git a/lib/Target/SparcV9/RegAlloc/RegClass.h b/lib/Target/SparcV9/RegAlloc/RegClass.h index 3db72b73639..c93d6961e0b 100644 --- a/lib/Target/SparcV9/RegAlloc/RegClass.h +++ b/lib/Target/SparcV9/RegAlloc/RegClass.h @@ -8,11 +8,9 @@ #ifndef REG_CLASS_H #define REG_CLASS_H -#include "llvm/CodeGen/IGNode.h" #include "llvm/CodeGen/InterferenceGraph.h" #include "llvm/Target/MachineRegInfo.h" #include -#include class MachineRegClassInfo; typedef std::vector ReservedColorListType; diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp index 8d87bfec6be..868f8710d89 100644 --- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp +++ b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp @@ -17,7 +17,6 @@ #include "llvm/GlobalVariable.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" -#include "llvm/Annotation.h" #include "llvm/BasicBlock.h" #include "llvm/Function.h" #include "llvm/Module.h" @@ -25,7 +24,6 @@ #include "llvm/Pass.h" #include "llvm/Assembly/Writer.h" #include "Support/StringExtras.h" -#include "Support/HashExtras.h" #include using std::string; diff --git a/lib/Target/SparcV9/SparcV9InstrInfo.cpp b/lib/Target/SparcV9/SparcV9InstrInfo.cpp index 354c39aa6bc..71380ed92a2 100644 --- a/lib/Target/SparcV9/SparcV9InstrInfo.cpp +++ b/lib/Target/SparcV9/SparcV9InstrInfo.cpp @@ -15,7 +15,6 @@ #include "llvm/Target/Sparc.h" #include "llvm/CodeGen/InstrSelection.h" #include "llvm/CodeGen/InstrSelectionSupport.h" -#include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineCodeForMethod.h" #include "llvm/Function.h" #include "llvm/Constants.h" diff --git a/lib/Target/SparcV9/SparcV9Internals.h b/lib/Target/SparcV9/SparcV9Internals.h index 0e80179f4eb..4ca66163ac1 100644 --- a/lib/Target/SparcV9/SparcV9Internals.h +++ b/lib/Target/SparcV9/SparcV9Internals.h @@ -13,7 +13,6 @@ #define SPARC_INTERNALS_H #include "llvm/Target/TargetMachine.h" -#include "llvm/Target/MachineInstrInfo.h" #include "llvm/Target/MachineSchedInfo.h" #include "llvm/Target/MachineFrameInfo.h" #include "llvm/Target/MachineCacheInfo.h" diff --git a/lib/Target/SparcV9/SparcV9RegClassInfo.cpp b/lib/Target/SparcV9/SparcV9RegClassInfo.cpp index b25dd01ba93..6f645b1df7c 100644 --- a/lib/Target/SparcV9/SparcV9RegClassInfo.cpp +++ b/lib/Target/SparcV9/SparcV9RegClassInfo.cpp @@ -1,5 +1,5 @@ #include "SparcRegClassInfo.h" -#include "llvm/CodeGen/IGNode.h" +#include "llvm/CodeGen/RegAllocCommon.h" #include "llvm/Target/Sparc.h" #include "llvm/Type.h" #include diff --git a/lib/Target/SparcV9/SparcV9RegInfo.cpp b/lib/Target/SparcV9/SparcV9RegInfo.cpp index ad0dd25685f..b660e89805f 100644 --- a/lib/Target/SparcV9/SparcV9RegInfo.cpp +++ b/lib/Target/SparcV9/SparcV9RegInfo.cpp @@ -11,6 +11,7 @@ #include "llvm/CodeGen/MachineCodeForMethod.h" #include "llvm/CodeGen/PhyRegAlloc.h" #include "llvm/CodeGen/MachineInstr.h" +#include "llvm/CodeGen/RegAllocCommon.h" #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h" #include "llvm/iTerminators.h" #include "llvm/iOther.h" diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index cd14bb38284..9f75198e1ca 100644 --- a/lib/Transforms/ExprTypeConvert.cpp +++ b/lib/Transforms/ExprTypeConvert.cpp @@ -7,16 +7,13 @@ //===----------------------------------------------------------------------===// #include "TransformInternals.h" -#include "llvm/Function.h" #include "llvm/iOther.h" #include "llvm/iPHINode.h" #include "llvm/iMemory.h" -#include "llvm/Constants.h" #include "llvm/ConstantHandling.h" #include "llvm/Transforms/Scalar/DCE.h" #include "llvm/Analysis/Expressions.h" #include "Support/STLExtras.h" -#include #include #include using std::cerr; diff --git a/lib/Transforms/HoistPHIConstants.cpp b/lib/Transforms/HoistPHIConstants.cpp index 05480ea9503..bdf2efc952b 100644 --- a/lib/Transforms/HoistPHIConstants.cpp +++ b/lib/Transforms/HoistPHIConstants.cpp @@ -12,8 +12,6 @@ #include "llvm/BasicBlock.h" #include "llvm/Function.h" #include "llvm/Pass.h" -#include -#include typedef std::pair BBConstTy; typedef std::map CachedCopyMap; diff --git a/lib/Transforms/IPO/DeadTypeElimination.cpp b/lib/Transforms/IPO/DeadTypeElimination.cpp index dc330b29f8a..75d1c5343ab 100644 --- a/lib/Transforms/IPO/DeadTypeElimination.cpp +++ b/lib/Transforms/IPO/DeadTypeElimination.cpp @@ -25,7 +25,6 @@ #include "llvm/iTerminators.h" #include "llvm/iOther.h" #include "llvm/Support/CFG.h" -#include "llvm/Pass.h" #include #include using std::vector; diff --git a/lib/Transforms/IPO/GlobalDCE.cpp b/lib/Transforms/IPO/GlobalDCE.cpp index e852a6a29fc..2f938079a84 100644 --- a/lib/Transforms/IPO/GlobalDCE.cpp +++ b/lib/Transforms/IPO/GlobalDCE.cpp @@ -9,9 +9,7 @@ #include "llvm/Analysis/CallGraph.h" #include "llvm/Module.h" #include "llvm/Function.h" -#include "llvm/Pass.h" #include "Support/DepthFirstIterator.h" -#include static bool RemoveUnreachableFunctions(Module *M, CallGraph &CallGraph) { // Calculate which functions are reachable from the external functions in the diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index ba64a6abce0..9e84138b08e 100644 --- a/lib/Transforms/IPO/InlineSimple.cpp +++ b/lib/Transforms/IPO/InlineSimple.cpp @@ -28,7 +28,6 @@ #include "llvm/Type.h" #include "llvm/Argument.h" #include -#include #include using std::cerr; diff --git a/lib/Transforms/IPO/OldPoolAllocate.cpp b/lib/Transforms/IPO/OldPoolAllocate.cpp index bb990020529..8255bcac522 100644 --- a/lib/Transforms/IPO/OldPoolAllocate.cpp +++ b/lib/Transforms/IPO/OldPoolAllocate.cpp @@ -11,7 +11,6 @@ #include "llvm/Transforms/IPO/PoolAllocate.h" #include "llvm/Transforms/CloneFunction.h" -#include "llvm/Analysis/DataStructure.h" #include "llvm/Analysis/DataStructureGraph.h" #include "llvm/Module.h" #include "llvm/Function.h" diff --git a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp index 3a44dbf918e..ebd290cd915 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp @@ -27,12 +27,9 @@ #include "llvm/Transforms/Instrumentation/ProfilePaths.h" #include "llvm/Transforms/UnifyFunctionExitNodes.h" #include "llvm/Support/CFG.h" -#include "llvm/Function.h" -#include "llvm/BasicBlock.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" #include "llvm/iMemory.h" -#include "llvm/Pass.h" #include "Graph.h" using std::vector; diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp index f9f9abeace9..2a6c6da20d5 100644 --- a/lib/Transforms/LevelRaise.cpp +++ b/lib/Transforms/LevelRaise.cpp @@ -8,10 +8,8 @@ #include "llvm/Transforms/LevelChange.h" #include "TransformInternals.h" -#include "llvm/Function.h" #include "llvm/iOther.h" #include "llvm/iMemory.h" -#include "llvm/Constants.h" #include "llvm/Pass.h" #include "llvm/ConstantHandling.h" #include "llvm/Transforms/Scalar/DCE.h" diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index bd60b519a78..4c322aa9d38 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -7,7 +7,6 @@ //===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar/DCE.h" -#include "llvm/Instruction.h" #include "llvm/Type.h" #include "llvm/Analysis/Dominators.h" #include "llvm/Analysis/Writer.h" diff --git a/lib/Transforms/Scalar/DCE.cpp b/lib/Transforms/Scalar/DCE.cpp index 4aac04114e0..7fc519baf49 100644 --- a/lib/Transforms/Scalar/DCE.cpp +++ b/lib/Transforms/Scalar/DCE.cpp @@ -26,8 +26,6 @@ #include "llvm/Transforms/Scalar/DCE.h" #include "llvm/Module.h" #include "llvm/GlobalVariable.h" -#include "llvm/Function.h" -#include "llvm/BasicBlock.h" #include "llvm/iTerminators.h" #include "llvm/iPHINode.h" #include "llvm/Constant.h" diff --git a/lib/Transforms/Scalar/GCSE.cpp b/lib/Transforms/Scalar/GCSE.cpp index 2676609141d..06877a5ee9e 100644 --- a/lib/Transforms/Scalar/GCSE.cpp +++ b/lib/Transforms/Scalar/GCSE.cpp @@ -15,13 +15,11 @@ //===----------------------------------------------------------------------===// #include "llvm/Transforms/Scalar/GCSE.h" -#include "llvm/Pass.h" #include "llvm/InstrTypes.h" #include "llvm/iMemory.h" #include "llvm/Analysis/Dominators.h" #include "llvm/Support/InstVisitor.h" #include "llvm/Support/InstIterator.h" -#include #include namespace { diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index 1e8621b5ed5..6cfdc59687c 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -11,9 +11,7 @@ #include "llvm/iPHINode.h" #include "llvm/iOther.h" #include "llvm/Type.h" -#include "llvm/BasicBlock.h" #include "llvm/Constants.h" -#include "llvm/Pass.h" #include "llvm/Support/CFG.h" #include "Support/STLExtras.h" diff --git a/lib/Transforms/Scalar/InductionVars.cpp b/lib/Transforms/Scalar/InductionVars.cpp index ee7c4c8a727..b4a440f4ccc 100644 --- a/lib/Transforms/Scalar/InductionVars.cpp +++ b/lib/Transforms/Scalar/InductionVars.cpp @@ -21,13 +21,10 @@ #include "llvm/Transforms/Scalar/InductionVars.h" #include "llvm/Constants.h" -#include "llvm/Analysis/IntervalPartition.h" #include "llvm/iPHINode.h" -#include "llvm/Function.h" -#include "llvm/BasicBlock.h" -#include "llvm/InstrTypes.h" #include "llvm/Type.h" #include "llvm/Support/CFG.h" +#include "llvm/Analysis/IntervalPartition.h" #include "Support/STLExtras.h" #include #include diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index c8d2bed789c..71c8723e42b 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -16,7 +16,6 @@ #include "llvm/Transforms/Scalar/InstructionCombining.h" #include "llvm/ConstantHandling.h" -#include "llvm/Function.h" #include "llvm/iMemory.h" #include "llvm/iOther.h" #include "llvm/iOperators.h" diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index 8271c9bce43..1a3649e881a 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -18,8 +18,6 @@ #include "llvm/Transforms/Scalar/ConstantProp.h" #include "llvm/ConstantHandling.h" #include "llvm/Function.h" -#include "llvm/BasicBlock.h" -#include "llvm/Constants.h" #include "llvm/iPHINode.h" #include "llvm/iMemory.h" #include "llvm/iTerminators.h" @@ -28,7 +26,6 @@ #include "llvm/Support/InstVisitor.h" #include "Support/STLExtras.h" #include -#include #include #include using std::cerr; diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp index c6cb81f0f52..07c034bad08 100644 --- a/lib/Transforms/Utils/LowerAllocations.cpp +++ b/lib/Transforms/Utils/LowerAllocations.cpp @@ -8,13 +8,11 @@ //===----------------------------------------------------------------------===// #include "llvm/Transforms/ChangeAllocations.h" -#include "llvm/Target/TargetData.h" #include "llvm/Module.h" #include "llvm/Function.h" #include "llvm/DerivedTypes.h" #include "llvm/iMemory.h" #include "llvm/iOther.h" -#include "llvm/Constants.h" #include "llvm/Pass.h" #include "TransformInternals.h" using std::vector; diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 3d81a8bde05..cfaeeccdf6e 100644 --- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -22,7 +22,6 @@ #include "llvm/iMemory.h" #include "llvm/iPHINode.h" #include "llvm/iTerminators.h" -#include "llvm/Pass.h" #include "llvm/Function.h" #include "llvm/BasicBlock.h" #include "llvm/Constant.h" diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 5b4ad43d107..8e5de342561 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -25,7 +25,6 @@ #include "Support/StringExtras.h" #include "Support/STLExtras.h" #include -#include using std::string; using std::map; using std::vector; diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index bd750df1bfe..a3fdb28f498 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -6,7 +6,6 @@ #include "ValueHolderImpl.h" #include "llvm/iTerminators.h" -#include "llvm/SymbolTable.h" #include "llvm/Type.h" #include "llvm/Support/CFG.h" #include "llvm/iPHINode.h" diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index 30d170b6698..f542d112b87 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -7,7 +7,6 @@ #include "llvm/Analysis/Dominators.h" #include "llvm/Transforms/UnifyFunctionExitNodes.h" -#include "llvm/Function.h" #include "llvm/Support/CFG.h" #include "Support/DepthFirstIterator.h" #include "Support/STLExtras.h" diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index c15a88808d0..a91948f31c8 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -7,7 +7,6 @@ #include "llvm/Function.h" #include "llvm/DerivedTypes.h" -#include "llvm/SymbolTable.h" #include "llvm/Module.h" #include "llvm/GlobalVariable.h" #include "llvm/BasicBlock.h" diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp index f06c9e3f60e..0d25691cba3 100644 --- a/lib/VMCore/Module.cpp +++ b/lib/VMCore/Module.cpp @@ -8,7 +8,6 @@ #include "llvm/Function.h" #include "llvm/GlobalVariable.h" #include "llvm/InstrTypes.h" -#include "llvm/Type.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" #include "Support/STLExtras.h" diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 0196a99ce6f..f33eb311d34 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -36,9 +36,7 @@ #include "llvm/Analysis/Verifier.h" #include "llvm/Pass.h" -#include "llvm/Function.h" #include "llvm/Module.h" -#include "llvm/BasicBlock.h" #include "llvm/DerivedTypes.h" #include "llvm/iPHINode.h" #include "llvm/iTerminators.h" diff --git a/support/lib/Support/CommandLine.cpp b/support/lib/Support/CommandLine.cpp index 8633bef9340..194dd33b27e 100644 --- a/support/lib/Support/CommandLine.cpp +++ b/support/lib/Support/CommandLine.cpp @@ -11,7 +11,6 @@ #include "Support/CommandLine.h" #include "Support/STLExtras.h" -#include #include #include #include diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp index 7dbd3b7d1b5..e347b4331b9 100644 --- a/tools/analyze/analyze.cpp +++ b/tools/analyze/analyze.cpp @@ -10,9 +10,7 @@ // //===----------------------------------------------------------------------===// -#include "llvm/Instruction.h" #include "llvm/Module.h" -#include "llvm/Function.h" #include "llvm/iPHINode.h" #include "llvm/Type.h" #include "llvm/PassManager.h" @@ -34,7 +32,6 @@ #include "llvm/Support/InstIterator.h" #include "Support/CommandLine.h" #include -#include using std::ostream; using std::string; diff --git a/tools/as/as.cpp b/tools/as/as.cpp index 9eff9721720..594feb8dd83 100644 --- a/tools/as/as.cpp +++ b/tools/as/as.cpp @@ -15,7 +15,6 @@ #include "Support/CommandLine.h" #include "Support/Signals.h" #include -#include #include cl::String InputFilename ("", "Parse file, compile to bytecode", 0, "-"); diff --git a/tools/dis/dis.cpp b/tools/dis/dis.cpp index e14dcdc9a79..e3d0ef0a4b8 100644 --- a/tools/dis/dis.cpp +++ b/tools/dis/dis.cpp @@ -18,7 +18,6 @@ #include "llvm/Module.h" #include "llvm/Bytecode/Reader.h" -#include "llvm/Function.h" #include "llvm/Support/CFG.h" #include "Support/DepthFirstIterator.h" #include "Support/PostOrderIterator.h" diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index 613f51c8f39..ef502c22f9f 100644 --- a/tools/gccas/gccas.cpp +++ b/tools/gccas/gccas.cpp @@ -24,7 +24,6 @@ #include "Support/Signals.h" #include #include -#include cl::String InputFilename ("", "Parse file, compile to bytecode", cl::Required, ""); diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 802fd037293..6f6ab2ade66 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -20,7 +20,6 @@ #include "Support/CommandLine.h" #include "Support/Signals.h" #include -#include #include using std::string; diff --git a/tools/llvm-as/as.cpp b/tools/llvm-as/as.cpp index 9eff9721720..594feb8dd83 100644 --- a/tools/llvm-as/as.cpp +++ b/tools/llvm-as/as.cpp @@ -15,7 +15,6 @@ #include "Support/CommandLine.h" #include "Support/Signals.h" #include -#include #include cl::String InputFilename ("", "Parse file, compile to bytecode", 0, "-"); diff --git a/tools/llvm-as/llvm-as.cpp b/tools/llvm-as/llvm-as.cpp index 9eff9721720..594feb8dd83 100644 --- a/tools/llvm-as/llvm-as.cpp +++ b/tools/llvm-as/llvm-as.cpp @@ -15,7 +15,6 @@ #include "Support/CommandLine.h" #include "Support/Signals.h" #include -#include #include cl::String InputFilename ("", "Parse file, compile to bytecode", 0, "-"); diff --git a/tools/llvm-dis/dis.cpp b/tools/llvm-dis/dis.cpp index e14dcdc9a79..e3d0ef0a4b8 100644 --- a/tools/llvm-dis/dis.cpp +++ b/tools/llvm-dis/dis.cpp @@ -18,7 +18,6 @@ #include "llvm/Module.h" #include "llvm/Bytecode/Reader.h" -#include "llvm/Function.h" #include "llvm/Support/CFG.h" #include "Support/DepthFirstIterator.h" #include "Support/PostOrderIterator.h" diff --git a/tools/llvm-dis/llvm-dis.cpp b/tools/llvm-dis/llvm-dis.cpp index e14dcdc9a79..e3d0ef0a4b8 100644 --- a/tools/llvm-dis/llvm-dis.cpp +++ b/tools/llvm-dis/llvm-dis.cpp @@ -18,7 +18,6 @@ #include "llvm/Module.h" #include "llvm/Bytecode/Reader.h" -#include "llvm/Function.h" #include "llvm/Support/CFG.h" #include "Support/DepthFirstIterator.h" #include "Support/PostOrderIterator.h"