Skip to content

Commit b199854

Browse files
committed
more clean up
1 parent 45869d7 commit b199854

File tree

7 files changed

+7
-18
lines changed

7 files changed

+7
-18
lines changed

lldb/source/Core/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ if (LLDB_ENABLE_CURSES)
1616
endif()
1717
endif()
1818

19-
set(TELEMETRY_DEPS Telemetry)
20-
2119
# TODO: Add property `NO_PLUGIN_DEPENDENCIES` to lldbCore
2220
add_lldb_library(lldbCore
2321
Address.cpp
@@ -82,7 +80,7 @@ add_lldb_library(lldbCore
8280
Support
8381
Demangle
8482
TargetParser
85-
${TELEMETRY_DEPS}
83+
Telemetry
8684
)
8785

8886
add_dependencies(lldbCore

lldb/source/Core/Telemetry.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
9-
#include "llvm/Config/llvm-config.h"
10-
118
#include "lldb/Core/Telemetry.h"
129
#include "lldb/Core/Debugger.h"
1310
#include "lldb/Utility/LLDBLog.h"

lldb/unittests/Core/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11

2-
set(TELEMETRY_DEPS Telemetry)
3-
4-
52
add_lldb_unittest(LLDBCoreTests
63
CommunicationTest.cpp
74
DiagnosticEventTest.cpp
@@ -31,5 +28,5 @@ add_lldb_unittest(LLDBCoreTests
3128
LLVMTestingSupport
3229
LINK_COMPONENTS
3330
Support
34-
${TELEMETRY_DEPS}
31+
Telemetry
3532
)

lldb/unittests/Core/TelemetryTest.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
9-
#include "llvm/Config/llvm-config.h"
10-
11-
#ifdef LLVM_BUILD_TELEMETRY
12-
138
#include "lldb/Core/PluginInterface.h"
149
#include "lldb/Core/PluginManager.h"
1510
#include "lldb/Core/Telemetry.h"
@@ -94,5 +89,3 @@ TEST(TelemetryTest, PluginTest) {
9489

9590
ASSERT_EQ("FakeTelemetryPlugin", ins->GetInstanceName());
9691
}
97-
98-
#endif // LLVM_BUILD_TELEMETRY

llvm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ option (LLVM_ENABLE_DOXYGEN "Use doxygen to generate llvm API documentation." OF
835835
option (LLVM_ENABLE_SPHINX "Use Sphinx to generate llvm documentation." OFF)
836836
option (LLVM_ENABLE_OCAMLDOC "Build OCaml bindings documentation." ON)
837837
option (LLVM_ENABLE_BINDINGS "Build bindings." ON)
838-
option (LLVM_BUILD_TELEMETRY "[DEPRECATED - use LLVM_ENABLE_TELEMTRY]Enable the telemetry library. If set to OFF, library cannot be enabled after build (eg., at runtime)" ON)
838+
option (LLVM_BUILD_TELEMETRY "[DEPRECATED - use LLVM_ENABLE_TELEMTRY]" ON)
839839
option (LLVM_ENABLE_TELEMETRY "Enable the telemetry library. If set to OFF, library cannot be enabled after build (eg., at runtime)" ON)
840840

841841
set(LLVM_INSTALL_DOXYGEN_HTML_DIR "${CMAKE_INSTALL_DOCDIR}/llvm/doxygen-html"

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@
204204
/* Define if building LLVM with LLVM_BUILD_TELEMETRY */
205205
/* DEPRECATED - use LLVM_ENABLE_TELEMETRY */
206206
#cmakedefine LLVM_BUILD_TELEMETRY ${LLVM_BUILD_TELEMETRY}
207+
208+
/* Define if building LLVM with LLVM_ENABLE_TELEMETRY */
207209
#cmakedefine LLVM_ENABLE_TELEMETRY ${LLVM_ENABLE_TELEMETRY}
208210

209211
#endif

utils/bazel/llvm_configs/llvm-config.h.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@
204204
/* Define if building LLVM with LLVM_BUILD_TELEMETRY */
205205
/* DEPRECATED - Use LLVM_ENABLE_TELEMETRY */
206206
#cmakedefine LLVM_BUILD_TELEMETRY ${LLVM_BUILD_TELEMETRY}
207+
208+
/* Define if building LLVM with LLVM_ENABLE_TELEMETRY */
207209
#cmakedefine LLVM_ENABLE_TELEMETRY ${LLVM_ENABLE_TELEMETRY}
208210

209211
#endif

0 commit comments

Comments
 (0)