From 359a2deb6fc4a982bd513bc5fb3faeac0cb648ef Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 3 Feb 2022 18:06:19 +0100 Subject: [PATCH] [lldb] Fix windows&mac builds for c34698a811b13 --- lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDPLog.h | 3 ++- lldb/source/Plugins/Process/Windows/Common/ProcessWindowsLog.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDPLog.h b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDPLog.h index 7833344..ec3c9e4 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDPLog.h +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDPLog.h @@ -10,7 +10,7 @@ #define LLDB_SOURCE_PLUGINS_PROCESS_MACOSX_KERNEL_PROCESSKDPLOG_H #include "lldb/Utility/Log.h" - +#include "llvm/ADT/BitmaskEnum.h" namespace lldb_private { @@ -28,6 +28,7 @@ enum class KDPLog : Log::MaskType { Watchpoints = Log::ChannelFlag<10>, LLVM_MARK_AS_BITMASK_ENUM(Watchpoints) }; +LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE(); class ProcessKDPLog { public: diff --git a/lldb/source/Plugins/Process/Windows/Common/ProcessWindowsLog.h b/lldb/source/Plugins/Process/Windows/Common/ProcessWindowsLog.h index 976591a..41dd05d 100644 --- a/lldb/source/Plugins/Process/Windows/Common/ProcessWindowsLog.h +++ b/lldb/source/Plugins/Process/Windows/Common/ProcessWindowsLog.h @@ -10,6 +10,7 @@ #define liblldb_ProcessWindowsLog_h_ #include "lldb/Utility/Log.h" +#include "llvm/ADT/BitmaskEnum.h" namespace lldb_private { @@ -24,6 +25,7 @@ enum class WindowsLog : Log::MaskType { Thread = Log::ChannelFlag<7>, // Log thread operations LLVM_MARK_AS_BITMASK_ENUM(Thread) }; +LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE(); class ProcessWindowsLog { public: -- 2.7.4