summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-10-08 07:23:46 +0000
committerDuncan Sands <baldrick@free.fr>2008-10-08 07:23:46 +0000
commit4520dd2b7b20af07d5a3e4d06d964a532044eb10 (patch)
tree237fc9fb154988e2473633f1d78db88c6fed0164
parent9fc4da40eff3995b4cfea4af598079435736f9ec (diff)
downloadllvm-4520dd2b7b20af07d5a3e4d06d964a532044eb10.tar.gz
llvm-4520dd2b7b20af07d5a3e4d06d964a532044eb10.tar.bz2
llvm-4520dd2b7b20af07d5a3e4d06d964a532044eb10.tar.xz
Add <cstdio> 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
-rw-r--r--lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp1
-rw-r--r--lib/ExecutionEngine/JIT/JITMemoryManager.cpp1
-rw-r--r--lib/System/DynamicLibrary.cpp1
-rw-r--r--lib/Target/PIC16/PIC16InstrInfo.cpp1
-rw-r--r--lib/Target/PowerPC/PPCMachOWriterInfo.cpp1
-rw-r--r--lib/Transforms/Scalar/GVN.cpp1
-rw-r--r--lib/Transforms/Utils/UnrollLoop.cpp1
-rw-r--r--lib/VMCore/PassManager.cpp1
-rw-r--r--utils/TableGen/InstrEnumEmitter.cpp1
-rw-r--r--utils/TableGen/TGLexer.cpp1
10 files changed, 10 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index 684d7db874..66a26cff3c 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 <csignal>
+#include <cstdio>
#include <map>
#include <cmath>
#include <cstring>
diff --git a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp b/lib/ExecutionEngine/JIT/JITMemoryManager.cpp
index 0ffc779901..618f1442e5 100644
--- a/lib/ExecutionEngine/JIT/JITMemoryManager.cpp
+++ b/lib/ExecutionEngine/JIT/JITMemoryManager.cpp
@@ -18,6 +18,7 @@
#include <map>
#include <vector>
#include <cassert>
+#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace llvm;
diff --git a/lib/System/DynamicLibrary.cpp b/lib/System/DynamicLibrary.cpp
index 5e3b6cb565..970266f343 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 <cstdio>
#include <cstring>
#include <map>
diff --git a/lib/Target/PIC16/PIC16InstrInfo.cpp b/lib/Target/PIC16/PIC16InstrInfo.cpp
index cc1cb88d97..96858e3db4 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 <cstdio>
using namespace llvm;
diff --git a/lib/Target/PowerPC/PPCMachOWriterInfo.cpp b/lib/Target/PowerPC/PPCMachOWriterInfo.cpp
index b5b71e5a80..3bfa6d7191 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 <cstdio>
using namespace llvm;
PPCMachOWriterInfo::PPCMachOWriterInfo(const PPCTargetMachine &TM)
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp
index 25b61c1095..0e1900cbe0 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 <cstdio>
using namespace llvm;
STATISTIC(NumGVNInstr, "Number of instructions deleted");
diff --git a/lib/Transforms/Utils/UnrollLoop.cpp b/lib/Transforms/Utils/UnrollLoop.cpp
index a86306c9e4..63493dc66a 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 <cstdio>
using namespace llvm;
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp
index e3d1c5364e..ef90aace3d 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 <algorithm>
+#include <cstdio>
#include <vector>
#include <map>
using namespace llvm;
diff --git a/utils/TableGen/InstrEnumEmitter.cpp b/utils/TableGen/InstrEnumEmitter.cpp
index df07119944..4b4791b614 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 <cstdio>
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 a6de239e6f..e7465de28a 100644
--- a/utils/TableGen/TGLexer.cpp
+++ b/utils/TableGen/TGLexer.cpp
@@ -17,6 +17,7 @@
#include <ostream>
#include "llvm/Config/config.h"
#include <cctype>
+#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace llvm;