[Lldb-commits] [PATCH] D83433: Fix how we handle bit-fields for Objective-C when creating an AST

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 9 13:08:04 PDT 2020


aprantl added a comment.

@shafik It would be good to document what the expected behavior for bitfields ivars in Objective-C is. For the sake of this discussion, but really we also want this in a comment in the code, for future reference.

IIUC, ivars don't have meaningful static offsets that we could put in DWARF, because only the Objective-C runtime knows the real offsets at runtime. Is the correct? How does that extend for bitfields? Is the Objective-C runtime aware of bitfield ivars, or are bitfields grouped together inter larger "container" ivars that the ObjC runtime knows about, and we need to encode the relative bit-offsets inside that container in DWARF?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83433/new/

https://reviews.llvm.org/D83433





More information about the lldb-commits mailing list