This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFCI] Deprecate SBValue::GetOpaqueType
ClosedPublic

Authored by bulbazord on Jun 27 2023, 1:55 PM.

Details

Summary

This method, as far as I can ascertain, is non-trivial to actually use
to work with (if not impossible). It doesn't make sense to use from
Python and you do not have access to the accompanying TypeSystem, so it
doesn't really do anything useful.

A possible follow-up is to gut the implementation and have it return nullptr.

Diff Detail

Event Timeline

bulbazord created this revision.Jun 27 2023, 1:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2023, 1:55 PM
bulbazord requested review of this revision.Jun 27 2023, 1:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 27 2023, 1:55 PM
JDevlieghere added inline comments.Jun 27 2023, 2:28 PM
lldb/include/lldb/API/SBValue.h
286

Similar comment as in D153900: The "Do not use." part is redundant and implied by the deprecation.

mib added inline comments.Jun 27 2023, 3:16 PM
lldb/include/lldb/API/SBValue.h
286

Should we add a macro like for LLDB_INVALID_* to act as the FIX argument ? It feels wrong to pass an empty string.

bulbazord added inline comments.Jun 27 2023, 3:39 PM
lldb/include/lldb/API/SBValue.h
286

Yeah, I think it would be useful to distinguish between deprecations for "we have a better way to do this now" and "we probably shouldn't be exposing this method". I'll submit a separate change for that.

bulbazord updated this revision to Diff 536865.Jul 3 2023, 12:18 PM

Address feedback

This revision is now accepted and ready to land.Jul 3 2023, 2:42 PM
This revision was automatically updated to reflect the committed changes.