This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFCI] Redefine dw_attr_t typedef with llvm::dwarf::Attribute
ClosedPublic

Authored by bulbazord on May 10 2023, 1:25 PM.

Details

Summary

Similar to dw_form_t, dw_attr_t is typedef'd to be a uint16_t. LLVM
defines their type llvm::dwarf::Attribute as an enum backed by a
uint16_t. Switching to the LLVM type buys us type checking and the
requirement of explicit casts.

Diff Detail

Event Timeline

bulbazord created this revision.May 10 2023, 1:25 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: arphaman. · View Herald Transcript
bulbazord requested review of this revision.May 10 2023, 1:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2023, 1:25 PM
fdeazeve accepted this revision.May 12 2023, 4:24 AM

LGTM! Sorry for the delay!

This revision is now accepted and ready to land.May 12 2023, 4:24 AM