[LLDB][NFC]Add missing getKind/classof methods for ClientInfo (#142984)
diff --git a/lldb/include/lldb/Core/Telemetry.h b/lldb/include/lldb/Core/Telemetry.h
index 5be68de..1db6972 100644
--- a/lldb/include/lldb/Core/Telemetry.h
+++ b/lldb/include/lldb/Core/Telemetry.h
@@ -102,6 +102,17 @@
std::string client_data;
std::optional<std::string> error_msg;
+ // For dyn_cast, isa, etc operations.
+ llvm::telemetry::KindType getKind() const override {
+ return LLDBEntryKind::ClientInfo;
+ }
+
+ static bool classof(const llvm::telemetry::TelemetryInfo *t) {
+ // Subclasses of this is also acceptable.
+ return (t->getKind() & LLDBEntryKind::ClientInfo) ==
+ LLDBEntryKind::ClientInfo;
+ }
+
void serialize(llvm::telemetry::Serializer &serializer) const override;
};