This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Deduplicate copy-pasted TypeSystemMap::GetTypeSystemForLanguage
ClosedPublic

Authored by teemperor on Jun 25 2020, 3:13 AM.

Details

Summary

There are two implementations for TypeSystemMap::GetTypeSystemForLanguage which are both
identical beside one taking a Module and one taking a Target (and then passing that argument
to the TypeSystem::CreateInstance function).

This merges both implementations into one function with a lambda that wraps the different calls
to TypeSystem::CreateInstance.

Diff Detail

Event Timeline

teemperor created this revision.Jun 25 2020, 3:13 AM
JDevlieghere accepted this revision.Aug 11 2020, 11:15 AM
This revision is now accepted and ready to land.Aug 11 2020, 11:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 14 2020, 2:59 AM