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:
Nick Lewycky 2010-12-19 20:42:43 +00:00
parent 92dcd2af36
commit e718af6c63
4 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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);
}
//===----------------------------------------------------------------------===//

View File

@ -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;
}

View File

@ -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;