Skip to content

Commit eb6577d

Browse files
authored
[LLDB][NFC]Add missing getKind/classof methods for ClientInfo (llvm#142984)
1 parent a1dd4e3 commit eb6577d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lldb/include/lldb/Core/Telemetry.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,17 @@ struct ClientInfo : public LLDBBaseTelemetryInfo {
102102
std::string client_data;
103103
std::optional<std::string> error_msg;
104104

105+
// For dyn_cast, isa, etc operations.
106+
llvm::telemetry::KindType getKind() const override {
107+
return LLDBEntryKind::ClientInfo;
108+
}
109+
110+
static bool classof(const llvm::telemetry::TelemetryInfo *t) {
111+
// Subclasses of this is also acceptable.
112+
return (t->getKind() & LLDBEntryKind::ClientInfo) ==
113+
LLDBEntryKind::ClientInfo;
114+
}
115+
105116
void serialize(llvm::telemetry::Serializer &serializer) const override;
106117
};
107118

0 commit comments

Comments
 (0)