================
@@ -63,6 +63,55 @@ BreakpointResolver::NameToResolverTy(llvm::StringRef name) {
   return UnknownResolver;
 }
 
+bool BreakpointResolver::ResolverTyInMask(uint64_t mask) {
+  if (mask == eResolverUnknown)
+    return false;
+
+  return (mask & MaskForResolverTy()) != 0;
+}
+
+uint64_t BreakpointResolver::MaskForResolverTy() {
+  ResolverTy thisID = GetResolverTy();
+
+  if (thisID == FileLineResolver)
+    return eResolverFileAndLine;
+  if (thisID == AddressResolver)
+    return eResolverAddress;
+  if (thisID == NameResolver)
+    return eResolverName;
+  if (thisID == FileRegexResolver)
+    return eResolverFileRegex;
+  if (thisID == PythonResolver)
+    return eResolverPython;
+  if (thisID == ExceptionResolver)
+    return eResolverException;
+  return eResolverUnknown;
----------------
JDevlieghere wrote:

Why not a switch?

https://github.com/llvm/llvm-project/pull/198845
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to