Function name change /NFC
authorXinliang David Li <davidxl@google.com>
Thu, 4 Feb 2016 23:59:09 +0000 (23:59 +0000)
committerXinliang David Li <davidxl@google.com>
Thu, 4 Feb 2016 23:59:09 +0000 (23:59 +0000)
llvm-svn: 259851

llvm/lib/ProfileData/InstrProf.cpp

index 679d04d..1cfc21e 100644 (file)
@@ -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);