This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Implement GetValueTypeFromAddressType
ClosedPublic

Authored by augusto2112 on May 17 2023, 3:58 PM.

Details

Summary

Value::ValueType is a superset of AddressType. Add a function to
convert an AddressType into a Value::ValueType.

Diff Detail

Event Timeline

augusto2112 created this revision.May 17 2023, 3:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2023, 3:58 PM
augusto2112 requested review of this revision.May 17 2023, 3:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2023, 3:58 PM

Where do you plan on using this? Downstream I assume?

lldb/source/Core/Value.cpp
134–135

This switch is exhaustive, could you add an llvm_unreachable somewhere to indicate this? After the switch or something.

Where do you plan on using this? Downstream I assume?

Yes, I need this downstream, but seemed general enough to add upstream.

Add llvm_unreachable

This revision is now accepted and ready to land.May 17 2023, 5:12 PM
This revision was automatically updated to reflect the committed changes.