[Lldb-commits] [lldb] [LLDB][NFC]Add missing getKind/classof methods for ClientInfo (PR #142984)
Vy Nguyen via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 5 07:56:33 PDT 2025
https://github.com/oontvoo created https://github.com/llvm/llvm-project/pull/142984
None
>From 9ae263cc0ffc6dc95d4a5b44d58462c1a22f1294 Mon Sep 17 00:00:00 2001
From: Vy Nguyen <vyng at google.com>
Date: Thu, 5 Jun 2025 10:55:38 -0400
Subject: [PATCH] [LLDB][NFC]Add missing getKind/classof methods for ClientInfo
---
lldb/include/lldb/Core/Telemetry.h | 11 +++++++++++
1 file changed, 11 insertions(+)
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;
};
More information about the lldb-commits
mailing list