================ @@ -643,14 +648,11 @@ class SampleContext { uint64_t getHashCode() const { if (hasContext()) return hash_value(getContextFrames()); - - // For non-context function name, use its MD5 as hash value, so that it is - // consistent with the profile map's key. - return hashFuncName(getName()); + return getName().getHashCode(); } /// Set the name of the function and clear the current context. - void setName(StringRef FunctionName) { + void setName(ProfileFuncRef FunctionName) { ---------------- david-xl wrote:
FunctionName --> Function https://github.com/llvm/llvm-project/pull/66164 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits