mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-27 05:10:41 +00:00
Add missing std:: prefixes to some calls. C++ doesn't require that <cfoo>
headers provide symbols outside namespace std and the LLVM coding standards state that we should prefix all of them. llvm-svn: 122192
This commit is contained in:
parent
92dcd2af36
commit
e718af6c63
@ -833,7 +833,7 @@ lltok::Kind LLLexer::LexDigitOrNegative() {
|
||||
}
|
||||
}
|
||||
|
||||
APFloatVal = APFloat(atof(TokStart));
|
||||
APFloatVal = APFloat(std::atof(TokStart));
|
||||
return lltok::APFloat;
|
||||
}
|
||||
|
||||
@ -867,6 +867,6 @@ lltok::Kind LLLexer::LexPositive() {
|
||||
}
|
||||
}
|
||||
|
||||
APFloatVal = APFloat(atof(TokStart));
|
||||
APFloatVal = APFloat(std::atof(TokStart));
|
||||
return lltok::APFloat;
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ static void Help(const SubtargetFeatureKV *CPUTable, size_t CPUTableSize,
|
||||
|
||||
errs() << "Use +feature to enable a feature, or -feature to disable it.\n"
|
||||
<< "For example, llc -mcpu=mycpu -mattr=+feature1,-feature2\n";
|
||||
exit(1);
|
||||
std::exit(1);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -164,7 +164,7 @@ unsigned TargetInstrInfo::getInlineAsmLength(const char *Str,
|
||||
for (; *Str; ++Str) {
|
||||
if (*Str == '\n' || *Str == MAI.getSeparatorChar())
|
||||
atInsnStart = true;
|
||||
if (atInsnStart && !isspace(*Str)) {
|
||||
if (atInsnStart && !std::isspace(*Str)) {
|
||||
Length += MAI.getMaxInstLength();
|
||||
atInsnStart = false;
|
||||
}
|
||||
|
@ -110,12 +110,12 @@ static bool isValidName(StringRef MDName) {
|
||||
if (MDName.empty())
|
||||
return false;
|
||||
|
||||
if (!isalpha(MDName[0]))
|
||||
if (!std::isalpha(MDName[0]))
|
||||
return false;
|
||||
|
||||
for (StringRef::iterator I = MDName.begin() + 1, E = MDName.end(); I != E;
|
||||
++I) {
|
||||
if (!isalnum(*I) && *I != '_' && *I != '-' && *I != '.')
|
||||
if (!std::isalnum(*I) && *I != '_' && *I != '-' && *I != '.')
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user