Skip to content

Commit 013637a

Browse files
oontvoolabath
andauthored
Update llvm/include/llvm/Telemetry/Telemetry.h
Co-authored-by: Pavel Labath <[email protected]>
1 parent 361a564 commit 013637a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/include/llvm/Telemetry/Telemetry.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@ class Serializer {
6464
/// This struct can be extended as needed to add additional configuration
6565
/// points specific to a vendor's implementation.
6666
struct Config {
67-
#ifdef LLVM_ENABLE_TELEMETRY
68-
static const bool BuildTimeEnableTelemetry = true;
69-
#else
70-
static const bool BuildTimeEnableTelemetry = false;
71-
#endif
67+
static const bool BuildTimeEnableTelemetry = LLVM_ENABLE_TELEMETRY;
7268
virtual ~Config() : EnableTelemetry(BuildTimeEnableTelemetry) {}
7369

7470
// If true, telemetry will be enabled.

0 commit comments

Comments
 (0)