[llvm] r259851 - Function name change /NFC
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 4 15:59:10 PST 2016
Author: davidxl
Date: Thu Feb 4 17:59:09 2016
New Revision: 259851
URL: http://llvm.org/viewvc/llvm-project?rev=259851&view=rev
Log:
Function name change /NFC
Modified:
llvm/trunk/lib/ProfileData/InstrProf.cpp
Modified: llvm/trunk/lib/ProfileData/InstrProf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/InstrProf.cpp?rev=259851&r1=259850&r2=259851&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/InstrProf.cpp (original)
+++ llvm/trunk/lib/ProfileData/InstrProf.cpp Thu Feb 4 17:59:09 2016
@@ -209,7 +209,7 @@ int collectPGOFuncNameStrings(const std:
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:
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);
More information about the llvm-commits
mailing list