mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122192 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
da60588402
commit
2402123413
@ -833,7 +833,7 @@ lltok::Kind LLLexer::LexDigitOrNegative() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
APFloatVal = APFloat(atof(TokStart));
|
APFloatVal = APFloat(std::atof(TokStart));
|
||||||
return lltok::APFloat;
|
return lltok::APFloat;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -867,6 +867,6 @@ lltok::Kind LLLexer::LexPositive() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
APFloatVal = APFloat(atof(TokStart));
|
APFloatVal = APFloat(std::atof(TokStart));
|
||||||
return lltok::APFloat;
|
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"
|
errs() << "Use +feature to enable a feature, or -feature to disable it.\n"
|
||||||
<< "For example, llc -mcpu=mycpu -mattr=+feature1,-feature2\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) {
|
for (; *Str; ++Str) {
|
||||||
if (*Str == '\n' || *Str == MAI.getSeparatorChar())
|
if (*Str == '\n' || *Str == MAI.getSeparatorChar())
|
||||||
atInsnStart = true;
|
atInsnStart = true;
|
||||||
if (atInsnStart && !isspace(*Str)) {
|
if (atInsnStart && !std::isspace(*Str)) {
|
||||||
Length += MAI.getMaxInstLength();
|
Length += MAI.getMaxInstLength();
|
||||||
atInsnStart = false;
|
atInsnStart = false;
|
||||||
}
|
}
|
||||||
|
@ -110,12 +110,12 @@ static bool isValidName(StringRef MDName) {
|
|||||||
if (MDName.empty())
|
if (MDName.empty())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!isalpha(MDName[0]))
|
if (!std::isalpha(MDName[0]))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (StringRef::iterator I = MDName.begin() + 1, E = MDName.end(); I != E;
|
for (StringRef::iterator I = MDName.begin() + 1, E = MDName.end(); I != E;
|
||||||
++I) {
|
++I) {
|
||||||
if (!isalnum(*I) && *I != '_' && *I != '-' && *I != '.')
|
if (!std::isalnum(*I) && *I != '_' && *I != '-' && *I != '.')
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user