From: Chris Lattner Date: Sun, 22 Jan 2006 22:53:01 +0000 (+0000) Subject: Add explicit #includes of X-Git-Tag: android-x86-6.0-r1~1003^2~45106 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=86a5484079abc8a20f24066aaf3f5efcccebb673;p=android-x86%2Fexternal-llvm.git Add explicit #includes of git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25509 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp index 2ef4aa8af55..2b0ac90c6c2 100644 --- a/lib/Analysis/DataStructure/Local.cpp +++ b/lib/Analysis/DataStructure/Local.cpp @@ -24,6 +24,7 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" #include "llvm/Support/Timer.h" +#include // FIXME: This should eventually be a FunctionPass that is automatically // aggregated into a Pass. diff --git a/lib/Analysis/DataStructure/Steensgaard.cpp b/lib/Analysis/DataStructure/Steensgaard.cpp index ec0bc1f2b20..8a8391ff2a2 100644 --- a/lib/Analysis/DataStructure/Steensgaard.cpp +++ b/lib/Analysis/DataStructure/Steensgaard.cpp @@ -20,6 +20,7 @@ #include "llvm/Analysis/Passes.h" #include "llvm/Module.h" #include "llvm/Support/Debug.h" +#include using namespace llvm; namespace { diff --git a/lib/Support/ToolRunner.cpp b/lib/Support/ToolRunner.cpp index 6480c23cd8e..a9b68deecab 100644 --- a/lib/Support/ToolRunner.cpp +++ b/lib/Support/ToolRunner.cpp @@ -19,6 +19,7 @@ #include "llvm/Support/FileUtilities.h" #include #include +#include using namespace llvm; ToolExecutionError::~ToolExecutionError() throw() { } diff --git a/lib/Target/PowerPC/PPCCodeEmitter.cpp b/lib/Target/PowerPC/PPCCodeEmitter.cpp index bda49a8095a..d9d854bbfa4 100644 --- a/lib/Target/PowerPC/PPCCodeEmitter.cpp +++ b/lib/Target/PowerPC/PPCCodeEmitter.cpp @@ -22,6 +22,7 @@ #include "llvm/CodeGen/MachineInstrBuilder.h" #include "llvm/CodeGen/Passes.h" #include "llvm/Support/Debug.h" +#include using namespace llvm; namespace { diff --git a/lib/Target/Sparc/SparcV8ISelSimple.cpp b/lib/Target/Sparc/SparcV8ISelSimple.cpp index df668825a6f..f10859d5b97 100644 --- a/lib/Target/Sparc/SparcV8ISelSimple.cpp +++ b/lib/Target/Sparc/SparcV8ISelSimple.cpp @@ -27,6 +27,7 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/Support/InstVisitor.h" #include "llvm/Support/CFG.h" +#include using namespace llvm; namespace { diff --git a/lib/Target/SparcV8/SparcV8ISelSimple.cpp b/lib/Target/SparcV8/SparcV8ISelSimple.cpp index df668825a6f..f10859d5b97 100644 --- a/lib/Target/SparcV8/SparcV8ISelSimple.cpp +++ b/lib/Target/SparcV8/SparcV8ISelSimple.cpp @@ -27,6 +27,7 @@ #include "llvm/Target/TargetMachine.h" #include "llvm/Support/InstVisitor.h" #include "llvm/Support/CFG.h" +#include using namespace llvm; namespace { diff --git a/lib/Target/SparcV9/ModuloScheduling/MSSchedule.cpp b/lib/Target/SparcV9/ModuloScheduling/MSSchedule.cpp index a5dc60bed7c..52d53243f9e 100644 --- a/lib/Target/SparcV9/ModuloScheduling/MSSchedule.cpp +++ b/lib/Target/SparcV9/ModuloScheduling/MSSchedule.cpp @@ -17,7 +17,7 @@ #include "llvm/Target/TargetSchedInfo.h" #include "../SparcV9Internals.h" #include "llvm/CodeGen/MachineInstr.h" - +#include using namespace llvm; //Check if all resources are free diff --git a/lib/Target/SparcV9/ModuloScheduling/MSScheduleSB.cpp b/lib/Target/SparcV9/ModuloScheduling/MSScheduleSB.cpp index 23697b83a24..487fb336e06 100644 --- a/lib/Target/SparcV9/ModuloScheduling/MSScheduleSB.cpp +++ b/lib/Target/SparcV9/ModuloScheduling/MSScheduleSB.cpp @@ -17,7 +17,7 @@ #include "llvm/Target/TargetSchedInfo.h" #include "../SparcV9Internals.h" #include "llvm/CodeGen/MachineInstr.h" - +#include using namespace llvm; //Check if all resources are free diff --git a/lib/Target/SparcV9/ModuloScheduling/MSchedGraph.cpp b/lib/Target/SparcV9/ModuloScheduling/MSchedGraph.cpp index ec68a968e28..d9b1f9b1202 100644 --- a/lib/Target/SparcV9/ModuloScheduling/MSchedGraph.cpp +++ b/lib/Target/SparcV9/ModuloScheduling/MSchedGraph.cpp @@ -13,8 +13,8 @@ // is provided, a conservative approach of adding dependencies between all // loads and stores is taken. //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "ModuloSched" +#define DEBUG_TYPE "ModuloSched" #include "MSchedGraph.h" #include "../SparcV9RegisterInfo.h" #include "../MachineCodeForInstruction.h" @@ -28,7 +28,7 @@ #include #include #include - +#include using namespace llvm; //MSchedGraphNode constructor diff --git a/lib/Target/SparcV9/ModuloScheduling/MSchedGraphSB.cpp b/lib/Target/SparcV9/ModuloScheduling/MSchedGraphSB.cpp index 0d3d720ea5d..bd879f87786 100644 --- a/lib/Target/SparcV9/ModuloScheduling/MSchedGraphSB.cpp +++ b/lib/Target/SparcV9/ModuloScheduling/MSchedGraphSB.cpp @@ -13,8 +13,8 @@ // is provided, a conservative approach of adding dependencies between all // loads and stores is taken. //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "ModuloSchedSB" +#define DEBUG_TYPE "ModuloSchedSB" #include "MSchedGraphSB.h" #include "../SparcV9RegisterInfo.h" #include "../MachineCodeForInstruction.h" @@ -30,7 +30,7 @@ #include #include "llvm/Target/TargetSchedInfo.h" #include "../SparcV9Internals.h" - +#include using namespace llvm; //MSchedGraphSBNode constructor diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp index d977ff94ca3..d691a10f763 100644 --- a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp +++ b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp @@ -36,6 +36,7 @@ #include "SparcV9CodeEmitter.h" #include "SparcV9Relocations.h" #include "MachineFunctionInfo.h" +#include using namespace llvm; bool SparcV9TargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM, diff --git a/lib/Target/SparcV9/SparcV9JITInfo.cpp b/lib/Target/SparcV9/SparcV9JITInfo.cpp index c1a366ba415..2aefab418ab 100644 --- a/lib/Target/SparcV9/SparcV9JITInfo.cpp +++ b/lib/Target/SparcV9/SparcV9JITInfo.cpp @@ -17,6 +17,7 @@ #include "llvm/CodeGen/MachineCodeEmitter.h" #include "llvm/Config/alloca.h" #include "llvm/Support/Debug.h" +#include using namespace llvm; /// JITCompilerFunction - This contains the address of the JIT function used to diff --git a/lib/Transforms/ExprTypeConvert.cpp b/lib/Transforms/ExprTypeConvert.cpp index 7ed0d42f140..56cb04944f1 100644 --- a/lib/Transforms/ExprTypeConvert.cpp +++ b/lib/Transforms/ExprTypeConvert.cpp @@ -19,6 +19,7 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/Support/Debug.h" #include +#include using namespace llvm; static bool OperandConvertibleToType(User *U, Value *V, const Type *Ty, diff --git a/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp b/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp index 2d2a259f339..66a1b22915b 100644 --- a/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp +++ b/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp @@ -23,6 +23,7 @@ #include "ProfilingUtils.h" #include "llvm/Support/Debug.h" #include +#include using namespace llvm; namespace { diff --git a/lib/Transforms/Utils/CodeExtractor.cpp b/lib/Transforms/Utils/CodeExtractor.cpp index 85b9dcb131b..43324acf607 100644 --- a/lib/Transforms/Utils/CodeExtractor.cpp +++ b/lib/Transforms/Utils/CodeExtractor.cpp @@ -29,6 +29,7 @@ #include "llvm/ADT/StringExtras.h" #include #include +#include using namespace llvm; // Provide a command-line option to aggregate function arguments into a struct diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index da8541659b7..1159cd36f5e 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -23,6 +23,7 @@ #include #include #include +#include using namespace llvm; /// SafeToMergeTerminators - Return true if it is safe to merge these two diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index 6480c23cd8e..a9b68deecab 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/tools/bugpoint/ToolRunner.cpp @@ -19,6 +19,7 @@ #include "llvm/Support/FileUtilities.h" #include #include +#include using namespace llvm; ToolExecutionError::~ToolExecutionError() throw() { }