[Lldb-commits] [lldb] [lldb] Reduce the number of arguments to MemoryRegionInfo constructor (PR #188755)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 26 08:50:54 PDT 2026


================
@@ -27,13 +27,9 @@ class MemoryRegionInfo {
   MemoryRegionInfo() = default;
   MemoryRegionInfo(RangeType range, OptionalBool read, OptionalBool write,
                    OptionalBool execute, OptionalBool shared,
-                   OptionalBool mapped, ConstString name, OptionalBool flash,
-                   lldb::offset_t blocksize, OptionalBool memory_tagged,
-                   OptionalBool stack_memory, OptionalBool shadow_stack)
+                   OptionalBool mapped, ConstString name)
----------------
JDevlieghere wrote:

On a more serious note, I think developers of LLDB should be sufficiently aware of `LazyBool` and IMHO the fact that it doesn't perfectly cover the "unknown" case is not sufficient motivation for adding more types. Maybe an alias `eLazyBoolUknown = eLazyBoolCalculate` would be sufficient?

https://github.com/llvm/llvm-project/pull/188755


More information about the lldb-commits mailing list