llvm-project
926515d4 - [lldb][Clike] Add ByteSizedType (#243814)

Commit
3 days ago
[lldb][Clike] Add ByteSizedType (#243814) ByteSizedType is a mixin that adds a byte size to a Type. Type itself only declares GetByteSize (returning "unknown" by default) because many types derive their size from another type (arrays, typedefs, ...) or from the target (pointers) and therefore don't need to store one. Types with a size of their own, such as builtins, records and enums, will mix this in. An unknown size is stored as a UINT64_MAX sentinel instead of using std::optional, which would need extra space for its flag. assisted-by: claude
Author
Parents
Loading