[clang-tools-extra] [llvm-profdata] Do not create numerical strings for MD5 function names read from a Sample Profile. (PR #66164)

Matthias Braun via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 4 11:52:36 PDT 2023


================
@@ -618,7 +623,7 @@ class SampleContext {
   void clearState(ContextStateMask S) { State &= (uint32_t)~S; }
   bool hasContext() const { return State != UnknownContext; }
   bool isBaseContext() const { return FullContext.size() == 1; }
-  StringRef getName() const { return Name; }
+  ProfileFuncRef getName() const { return Name; }
----------------
MatzeB wrote:

I guess this should be `getId()` now (or however we end up naming the `ProfileFuncRef` now).

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


More information about the cfe-commits mailing list