aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorShih-wei Liao <sliao@google.com>2012-04-24 23:43:14 -0700
committerShih-wei Liao <sliao@google.com>2012-04-24 23:43:14 -0700
commit88cf47e98471077cc69f9ba5462507eb20891499 (patch)
treedf06fbcf3413d99951a22aa7dac422cf368fafd6 /lib
parentdb0e8a7d63e54b7d093ce87116e242c904373cac (diff)
downloadexternal_llvm-88cf47e98471077cc69f9ba5462507eb20891499.zip
external_llvm-88cf47e98471077cc69f9ba5462507eb20891499.tar.gz
external_llvm-88cf47e98471077cc69f9ba5462507eb20891499.tar.bz2
Fix sdk_x86-sdk build. Add <cctype> for tolower().
Change-Id: If3be5e195a8ee00abef055b7e98577b9981866eb
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index 04299f3..3042386 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");
@@ -15747,8 +15748,8 @@ X86TargetLowering::getRegForInlineAsmConstraint(const std::string &Constraint,
if (Res.second == 0) {
// Map st(0) -> st(7) -> ST0
if (Constraint.size() == 7 && Constraint[0] == '{' &&
- tolower(Constraint[1]) == 's' &&
- tolower(Constraint[2]) == 't' &&
+ std::tolower(Constraint[1]) == 's' &&
+ std::tolower(Constraint[2]) == 't' &&
Constraint[3] == '(' &&
(Constraint[4] >= '0' && Constraint[4] <= '7') &&
Constraint[5] == ')' &&