[Lldb-commits] [lldb] [NFC][lldb] Document a few ivars on the value object system. (PR #124971)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 30 10:24:36 PST 2025
================
@@ -148,6 +150,32 @@ class Value {
static ValueType GetValueTypeFromAddressType(AddressType address_type);
protected:
+ /// Represents a value, which can be a scalar, a load address, a file address,
+ /// or a host address.
+ ///
+ /// The interpretation of `m_value` depends on `m_value_type`:
+ /// - Scalar: `m_value` contains the scalar value.
+ /// - Load Address: `m_value` contains the load address.
+ /// - File Address: `m_value` contains the file address.
+ /// - Host Address: `m_value` contains a pointer to the start of the buffer in
+ /// host memory.
----------------
JDevlieghere wrote:
```suggestion
/// - Scalar: `m_value` contains the scalar value.
/// - Load Address: `m_value` contains the load address.
/// - File Address: `m_value` contains the file address.
/// - Host Address: `m_value` contains a pointer to the start of the buffer in
/// host memory.
```
https://github.com/llvm/llvm-project/pull/124971
More information about the lldb-commits
mailing list