This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Refactor deduction of the instance variable's name (NFC)
ClosedPublic

Authored by kastiglione on Mar 21 2023, 10:49 AM.

Details

Summary

Move responsibility of providing the instance variable name (this, self) from
TypeSystem to Language.

Language the natural place for this, but also has downstream benefits. Some languages
have multiple TypeSystem implementations (ex Swift), and by placing this logic in the
Language, redundancy is avoided.

This change relies on the tests from D145348 and D146320.

Diff Detail

Event Timeline

kastiglione created this revision.Mar 21 2023, 10:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2023, 10:49 AM
kastiglione requested review of this revision.Mar 21 2023, 10:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2023, 10:49 AM
aprantl accepted this revision.Mar 21 2023, 12:32 PM
This revision is now accepted and ready to land.Mar 21 2023, 12:32 PM