diff options
80 files changed, 15 insertions, 117 deletions
diff --git a/include/llvm/Bytecode/Writer.h b/include/llvm/Bytecode/Writer.h index e28ea77f07..b4d5e78fd0 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 <iostream.h> +#include <iosfwd> 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 3db72b7363..c93d6961e0 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 <stack> -#include <iostream> class MachineRegClassInfo; typedef std::vector<unsigned> ReservedColorListType; diff --git a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp index 9f908c6c71..627c7ff5f3 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 86061d8610..b4897a265a 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 958f7d7c66..7d735b79e4 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 <iostream> diff --git a/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp b/lib/Analysis/LiveVar/FunctionLiveVarInfo.cpp index 58d4691b76..295a9ed5e5 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 30d170b669..f542d112b8 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 a99849d31b..19632dd131 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 <stdio.h> // 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 3571138a0d..656d718e38 100644 --- a/lib/AsmParser/ParserInternals.h +++ b/lib/AsmParser/ParserInternals.h @@ -8,10 +8,7 @@ #ifndef PARSER_INTERNALS_H #define PARSER_INTERNALS_H -#include <stdio.h> #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 776e8c52a6..ad5e57e04a 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 <list> #include <utility> // Get definition of pair class #include <algorithm> -#include <stdio.h> // This embarasment is due to our flex lexer... #include <iostream> using std::list; using std::vector; diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index 4c7ebb119a..eb0cadc8ec 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 <algorithm> diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 7418c81bbe..70a6ae97f3 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 c32c6b476f..2c1ce975bc 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 73884bbdcc..bd4a328826 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 <deque> class BytecodeWriter { std::deque<unsigned char> &Out; diff --git a/lib/CodeGen/InstrSched/InstrScheduling.cpp b/lib/CodeGen/InstrSched/InstrScheduling.cpp index b042279747..d219ef6b6d 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 <ext/hash_set> #include <algorithm> -#include <iterator> -#include <iostream> using std::cerr; using std::vector; diff --git a/lib/CodeGen/InstrSched/SchedGraph.cpp b/lib/CodeGen/InstrSched/SchedGraph.cpp index 28679bfbdc..0629f8c75f 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 8a8a523f00..441a46c0e5 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 a4480e8865..aba49bd54c 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 <iostream> 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 583df38360..1724ce4489 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 c042e368c9..d06ac172db 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 "ll |