Author: Vy Nguyen Date: 2025-06-05T11:00:39-04:00 New Revision: eb6577d54f53715e8917cf8a91eb68c8b47d489f
URL: https://github.com/llvm/llvm-project/commit/eb6577d54f53715e8917cf8a91eb68c8b47d489f DIFF: https://github.com/llvm/llvm-project/commit/eb6577d54f53715e8917cf8a91eb68c8b47d489f.diff LOG: [LLDB][NFC]Add missing getKind/classof methods for ClientInfo (#142984) Added: Modified: lldb/include/lldb/Core/Telemetry.h Removed: ################################################################################ diff --git a/lldb/include/lldb/Core/Telemetry.h b/lldb/include/lldb/Core/Telemetry.h index 5be68de6fcd7f..1db69723b4706 100644 --- a/lldb/include/lldb/Core/Telemetry.h +++ b/lldb/include/lldb/Core/Telemetry.h @@ -102,6 +102,17 @@ struct ClientInfo : public LLDBBaseTelemetryInfo { 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; }; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits