We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4595c8 commit 7f5df4bCopy full SHA for 7f5df4b
llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h
@@ -138,6 +138,7 @@ class ProfiledCallGraph {
138
}
139
140
private:
141
+ // A helper to not recalculate FunctionId hash
142
class PrehashedFunctionId {
143
public:
144
PrehashedFunctionId() = default;
@@ -146,6 +147,9 @@ class ProfiledCallGraph {
146
147
148
const FunctionId &GetId() const { return Id; }
149
150
+ // Implicit conversion for hash_value(PrehashedFunctionId) to work.
151
+ // You are not supposed to use it directly, since it converts into
152
+ // hash-represeting FunctionId and thus drops the Name, use `GetId` instead.
153
operator FunctionId() const {
154
return FunctionId{Hash};
155
0 commit comments