[llvm] [PGO][GlobalValue][LTO]In GlobalValues::getGlobalIdentifier, use semicolon as delimiter for local-linkage varibles. (PR #74008)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 16:32:32 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,
----------------
teresajohnson wrote:

If we're going to keep the original name, probably want to at least leave big comments in the header not to use it as it is legacy.

https://github.com/llvm/llvm-project/pull/74008


More information about the llvm-commits mailing list