diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 11:08:44 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-02-20 11:08:44 +0000 |
commit | 579f07135afdc3975eb24a210433222b888dc9f7 (patch) | |
tree | 460fdcf6fe4d577708dcd3004a06536999972528 /llvm/lib/Support | |
parent | b912351ec908c049b5f40eab0052602c8dff31cd (diff) | |
download | bcm5719-llvm-579f07135afdc3975eb24a210433222b888dc9f7.tar.gz bcm5719-llvm-579f07135afdc3975eb24a210433222b888dc9f7.zip |
Unbreak build with gcc 4.3: provide missed includes and silence most annoying warnings.
llvm-svn: 47367
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/Support/FileUtilities.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/Support/FoldingSet.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/Support/Statistic.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/Support/StringExtras.cpp | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 804af957770..c70ed0da0cc 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -29,6 +29,7 @@ #include <cstdlib> #include <cerrno> #include <cstring> +#include <climits> using namespace llvm; using namespace cl; diff --git a/llvm/lib/Support/FileUtilities.cpp b/llvm/lib/Support/FileUtilities.cpp index 42083e46bd2..cde08d188ca 100644 --- a/llvm/lib/Support/FileUtilities.cpp +++ b/llvm/lib/Support/FileUtilities.cpp @@ -16,6 +16,7 @@ #include "llvm/System/Path.h" #include "llvm/System/MappedFile.h" #include "llvm/ADT/StringExtras.h" +#include <cstdlib> #include <cstring> #include <cctype> using namespace llvm; diff --git a/llvm/lib/Support/FoldingSet.cpp b/llvm/lib/Support/FoldingSet.cpp index 97d1f0d1689..bf50ed43dfe 100644 --- a/llvm/lib/Support/FoldingSet.cpp +++ b/llvm/lib/Support/FoldingSet.cpp @@ -17,6 +17,7 @@ #include "llvm/ADT/FoldingSet.h" #include "llvm/Support/MathExtras.h" #include <cassert> +#include <cstring> using namespace llvm; //===----------------------------------------------------------------------===// diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp index 10f13f554c0..e500b55f5f5 100644 --- a/llvm/lib/Support/Statistic.cpp +++ b/llvm/lib/Support/Statistic.cpp @@ -28,6 +28,7 @@ #include "llvm/ADT/StringExtras.h" #include <algorithm> #include <ostream> +#include <cstring> using namespace llvm; // GetLibSupportInfoOutputFile - Return a file stream to print our output on. diff --git a/llvm/lib/Support/StringExtras.cpp b/llvm/lib/Support/StringExtras.cpp index ac17696dd78..1fae4fae488 100644 --- a/llvm/lib/Support/StringExtras.cpp +++ b/llvm/lib/Support/StringExtras.cpp @@ -12,6 +12,7 @@ //===----------------------------------------------------------------------===// #include "llvm/ADT/StringExtras.h" +#include <cstring> using namespace llvm; /// getToken - This function extracts one token from source, ignoring any |