[BOLT] Use llvm::replace (NFC) (#140199)
This commit is contained in:
parent
3aeced7308
commit
e401fb8c47
@ -3326,7 +3326,7 @@ void BinaryFunction::duplicateConstantIslands() {
|
||||
static std::string constructFilename(std::string Filename,
|
||||
std::string Annotation,
|
||||
std::string Suffix) {
|
||||
std::replace(Filename.begin(), Filename.end(), '/', '-');
|
||||
llvm::replace(Filename, '/', '-');
|
||||
if (!Annotation.empty())
|
||||
Annotation.insert(0, "-");
|
||||
if (Filename.size() + Annotation.size() + Suffix.size() > MAX_PATH) {
|
||||
|
@ -109,7 +109,7 @@ void dumpFunction(const BinaryFunction &BF) {
|
||||
}
|
||||
|
||||
std::string PrintName = BF.getPrintName();
|
||||
std::replace(PrintName.begin(), PrintName.end(), '/', '-');
|
||||
llvm::replace(PrintName, '/', '-');
|
||||
std::string Filename =
|
||||
opts::AsmDump.empty()
|
||||
? (PrintName + ".s")
|
||||
|
@ -35,7 +35,7 @@ static const char *dynoStatsOptName(const bolt::DynoStats::Category C) {
|
||||
|
||||
OptNames[C] = bolt::DynoStats::Description(C);
|
||||
|
||||
std::replace(OptNames[C].begin(), OptNames[C].end(), ' ', '-');
|
||||
llvm::replace(OptNames[C], ' ', '-');
|
||||
|
||||
return OptNames[C].c_str();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user