[llvm] [clang] [PGO][GlobalValue][LTO]In GlobalValues::getGlobalIdentifier, use semicolon as delimiter for local-linkage varibles. (PR #74008)
Mingming Liu via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 30 23:09:11 PST 2023
================
@@ -246,11 +246,27 @@ std::string InstrProfError::message() const {
char InstrProfError::ID = 0;
-std::string getPGOFuncName(StringRef RawFuncName,
- GlobalValue::LinkageTypes Linkage,
+std::string getPGOFuncName(StringRef Name, GlobalValue::LinkageTypes Linkage,
----------------
minglotus-6 wrote:
I slightly prefer to use `getPGOFuncName` for `;` format and use `getLegacyPGOFuncName` for `:` format, and chose not to rename (want an NFC patch if rename is the way to go, since there are many existing callers).
I updated header and cpp, and did a minimal rename (this function has 3 callers, one in clang directory and another two in InstrProf.cpp)
https://github.com/llvm/llvm-project/pull/74008
More information about the cfe-commits
mailing list