Skip to content

Commit af0504c

Browse files
committed
put condition behind ifndef SWIG
1 parent ce679cd commit af0504c

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

lldb/include/lldb/API/SBDebugger.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
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-
2418
namespace lldb_private {
2519
class CommandPluginInterfaceImplementation;
2620
class 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.

lldb/source/API/SBDebugger.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,6 @@ SBTarget SBDebugger::GetDummyTarget() {
926926
return sb_target;
927927
}
928928

929-
#if ENABLE_CLIENT_TELEMETRY
930929
void 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

942940
bool SBDebugger::DeleteTarget(lldb::SBTarget &target) {
943941
LLDB_INSTRUMENT_VA(this, target);

lldb/tools/lldb-dap/LLDBUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ lldb::SBEnvironment
159159
GetEnvironmentFromArguments(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
163163
class TelemetryDispatcher {
164164
public:
165165
TelemetryDispatcher(lldb::SBDebugger *debugger) {

0 commit comments

Comments
 (0)