From: Duncan Sands Date: Wed, 8 Oct 2008 07:23:46 +0000 (+0000) Subject: Add include where needed by gcc-4.4. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4520dd2b7b20af07d5a3e4d06d964a532044eb10;p=oota-llvm.git Add include where needed by gcc-4.4. Patch by Samuel Tardieu. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57291 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 684d7db874c..66a26cff3c6 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -27,6 +27,7 @@ #include "llvm/Target/TargetData.h" #include "llvm/Support/ManagedStatic.h" #include +#include #include #include #include diff --git a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp b/lib/ExecutionEngine/JIT/JITMemoryManager.cpp index 0ffc7799013..618f1442e54 100644 --- a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp +++ b/lib/ExecutionEngine/JIT/JITMemoryManager.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include using namespace llvm; diff --git a/lib/System/DynamicLibrary.cpp b/lib/System/DynamicLibrary.cpp index 5e3b6cb5651..970266f3438 100644 --- a/lib/System/DynamicLibrary.cpp +++ b/lib/System/DynamicLibrary.cpp @@ -13,6 +13,7 @@ #include "llvm/System/DynamicLibrary.h" #include "llvm/Config/config.h" +#include #include #include diff --git a/lib/Target/PIC16/PIC16InstrInfo.cpp b/lib/Target/PIC16/PIC16InstrInfo.cpp index cc1cb88d97b..96858e3db42 100644 --- a/lib/Target/PIC16/PIC16InstrInfo.cpp +++ b/lib/Target/PIC16/PIC16InstrInfo.cpp @@ -18,6 +18,7 @@ #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/MachineInstrBuilder.h" #include "PIC16GenInstrInfo.inc" +#include using namespace llvm; diff --git a/lib/Target/PowerPC/PPCMachOWriterInfo.cpp b/lib/Target/PowerPC/PPCMachOWriterInfo.cpp index b5b71e5a803..3bfa6d71910 100644 --- a/lib/Target/PowerPC/PPCMachOWriterInfo.cpp +++ b/lib/Target/PowerPC/PPCMachOWriterInfo.cpp @@ -16,6 +16,7 @@ #include "PPCTargetMachine.h" #include "llvm/CodeGen/MachORelocation.h" #include "llvm/Support/OutputBuffer.h" +#include using namespace llvm; PPCMachOWriterInfo::PPCMachOWriterInfo(const PPCTargetMachine &TM) diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 25b61c10957..0e1900cbe08 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -36,6 +36,7 @@ #include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" +#include using namespace llvm; STATISTIC(NumGVNInstr, "Number of instructions deleted"); diff --git a/lib/Transforms/Utils/UnrollLoop.cpp b/lib/Transforms/Utils/UnrollLoop.cpp index a86306c9e4a..63493dc66a3 100644 --- a/lib/Transforms/Utils/UnrollLoop.cpp +++ b/lib/Transforms/Utils/UnrollLoop.cpp @@ -27,6 +27,7 @@ #include "llvm/Support/Debug.h" #include "llvm/Transforms/Utils/Cloning.h" #include "llvm/Transforms/Utils/Local.h" +#include using namespace llvm; diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index e3d1c5364e9..ef90aace3da 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -22,6 +22,7 @@ #include "llvm/Analysis/Dominators.h" #include "llvm-c/Core.h" #include +#include #include #include using namespace llvm; diff --git a/utils/TableGen/InstrEnumEmitter.cpp b/utils/TableGen/InstrEnumEmitter.cpp index df07119944e..4b4791b6145 100644 --- a/utils/TableGen/InstrEnumEmitter.cpp +++ b/utils/TableGen/InstrEnumEmitter.cpp @@ -15,6 +15,7 @@ #include "InstrEnumEmitter.h" #include "CodeGenTarget.h" #include "Record.h" +#include using namespace llvm; // runEnums - Print out enum values for all of the instructions. diff --git a/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp index a6de239e6f6..e7465de28a4 100644 --- a/utils/TableGen/TGLexer.cpp +++ b/utils/TableGen/TGLexer.cpp @@ -17,6 +17,7 @@ #include #include "llvm/Config/config.h" #include +#include #include #include using namespace llvm;