mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Function name change /NFC
llvm-svn: 259851
This commit is contained in:
parent
6960cdccb8
commit
fb97e919ed
@ -209,7 +209,7 @@ int collectPGOFuncNameStrings(const std::vector<std::string> &NameStrs,
|
||||
std::string(CompressedNameStrings.data(), CompressedNameStrings.size()));
|
||||
}
|
||||
|
||||
StringRef getPGOFuncNameInitializer(GlobalVariable *NameVar) {
|
||||
StringRef getPGOFuncNameVarInitializer(GlobalVariable *NameVar) {
|
||||
auto *Arr = cast<ConstantDataArray>(NameVar->getInitializer());
|
||||
StringRef NameStr =
|
||||
Arr->isCString() ? Arr->getAsCString() : Arr->getAsString();
|
||||
@ -220,7 +220,7 @@ int collectPGOFuncNameStrings(const std::vector<GlobalVariable *> &NameVars,
|
||||
std::string &Result, bool doCompression) {
|
||||
std::vector<std::string> NameStrs;
|
||||
for (auto *NameVar : NameVars) {
|
||||
NameStrs.push_back(getPGOFuncNameInitializer(NameVar));
|
||||
NameStrs.push_back(getPGOFuncNameVarInitializer(NameVar));
|
||||
}
|
||||
return collectPGOFuncNameStrings(
|
||||
NameStrs, zlib::isAvailable() && doCompression, Result);
|
||||
|
Loading…
Reference in New Issue
Block a user