File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed
Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 1515#include " lldb/API/SBPlatform.h"
1616#include " lldb/API/SBStructuredData.h"
1717
18- #ifdef SWIG
19- #define ENABLE_CLIENT_TELEMETRY 0
20- #else
21- #define ENABLE_CLIENT_TELEMETRY 1
22- #endif
23-
2418namespace lldb_private {
2519class CommandPluginInterfaceImplementation ;
2620class SystemInitializerFull ;
@@ -257,7 +251,7 @@ class LLDB_API SBDebugger {
257251
258252 lldb::SBTarget GetDummyTarget ();
259253
260- #if ENABLE_CLIENT_TELEMETRY
254+ #ifndef SWIG
261255 // Dispatch telemery from client to server if client-telemetry is enabled
262256 // (by vendor), otherwise the data is ignored.
263257 // Invoking this from python client (with SWIG) is not supported.
Original file line number Diff line number Diff line change @@ -926,7 +926,6 @@ SBTarget SBDebugger::GetDummyTarget() {
926926 return sb_target;
927927}
928928
929- #if ENABLE_CLIENT_TELEMETRY
930929void SBDebugger::DispatchClientTelemetry (const lldb::SBStructuredData &entry) {
931930 LLDB_INSTRUMENT_VA (this );
932931 if (m_opaque_sp) {
@@ -937,7 +936,6 @@ void SBDebugger::DispatchClientTelemetry(const lldb::SBStructuredData &entry) {
937936 " Could not send telemetry from SBDebugger - debugger was null." );
938937 }
939938}
940- #endif
941939
942940bool SBDebugger::DeleteTarget (lldb::SBTarget &target) {
943941 LLDB_INSTRUMENT_VA (this , target);
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ lldb::SBEnvironment
159159GetEnvironmentFromArguments (const llvm::json::Object &arguments);
160160
161161// / Helper for sending telemetry to lldb server, if client-telemetry is enabled.
162- #if ENABLE_CLIENT_TELEMETRY
162+ #ifndef SWIG
163163class TelemetryDispatcher {
164164public:
165165 TelemetryDispatcher (lldb::SBDebugger *debugger) {
You can’t perform that action at this time.
0 commit comments