aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2012-08-10 10:53:56 +0000
committerJoerg Sonnenberger <joerg@bec.de>2012-08-10 10:53:56 +0000
commit78cab947cf8f81fc3cadbedd90c20fbe6e5eb1ee (patch)
tree34ae42a2b7c4849c1863f8e7d197c95f9395edf1
parent3eeba88631db6da7d45df67f677556297bd93f75 (diff)
downloadexternal_llvm-78cab947cf8f81fc3cadbedd90c20fbe6e5eb1ee.zip
external_llvm-78cab947cf8f81fc3cadbedd90c20fbe6e5eb1ee.tar.gz
external_llvm-78cab947cf8f81fc3cadbedd90c20fbe6e5eb1ee.tar.bz2
Add some missing includes for the build against stdcxx.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161657 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/StringRef.h1
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp1
-rw-r--r--utils/TableGen/StringToOffsetTable.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/ADT/StringRef.h b/include/llvm/ADT/StringRef.h
index 1779bcb..cd84603 100644
--- a/include/llvm/ADT/StringRef.h
+++ b/include/llvm/ADT/StringRef.h
@@ -12,6 +12,7 @@
#include "llvm/Support/type_traits.h"
+#include <algorithm>
#include <cassert>
#include <cstring>
#include <limits>
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index 33bc1c9..c68d62b 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/lib/Target/X86/X86ISelLowering.cpp
@@ -49,6 +49,7 @@
#include "llvm/Support/MathExtras.h"
#include "llvm/Target/TargetOptions.h"
#include <bitset>
+#include <cctype>
using namespace llvm;
STATISTIC(NumTailCalls, "Number of tail calls");
diff --git a/utils/TableGen/StringToOffsetTable.h b/utils/TableGen/StringToOffsetTable.h
index 803f5bd..a098d7d 100644
--- a/utils/TableGen/StringToOffsetTable.h
+++ b/utils/TableGen/StringToOffsetTable.h
@@ -14,6 +14,7 @@
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/raw_ostream.h"
+#include <cctype>
namespace llvm {