[all-commits] [llvm/llvm-project] 9d9f3e: [lldb] Remove ProcessStructReader from NSStringSum...

Dave Lee via All-commits all-commits at lists.llvm.org
Sun Jan 9 12:09:21 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d9f3e0ec773c6a2c570c8bc7484367bff73190c
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2022-01-09 (Sun, 09 Jan 2022)

  Changed paths:
    M lldb/source/Plugins/Language/ObjC/NSString.cpp

  Log Message:
  [lldb] Remove ProcessStructReader from NSStringSummaryProvider (NFC)

Simplify getting the length of `NSPathStore2` strings.

`NSStringSummaryProvider` uses a single field from `NSPathStore2` instances,
its first ivar: `_lengthAndRefCount`. This change uses
`GetSyntheticChildAtOffset` to replace the use of `ProcessStructReader`, and
removes the hard coded `CompilerType` definition of `NSPathStore2`.

Differential Revision: https://reviews.llvm.org/D116461

More information about the All-commits mailing list