This is an archive of the discontinued LLVM Phabricator instance.

[demangler] refactor SpecialSubKind
ClosedPublic

Authored by urnathan on Jan 25 2022, 5:12 AM.

Details

Reviewers
ChuanqiXu
aaron.ballman
Group Reviewers
Restricted Project
Commits
rG4e5fce58485c: [demangler] refactor SpecialSubKind
Summary

Code generating the special substitutions in std is a switch statement with each case block containing the same conststruction template. It is more efficient to commonize that after the switch, having determined which SubKind to create. Also, let's sort the cases.

Diff Detail

Event Timeline

urnathan requested review of this revision.Jan 25 2022, 5:12 AM
urnathan created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 25 2022, 5:12 AM
This revision is now accepted and ready to land.Jan 25 2022, 6:24 PM
This revision was landed with ongoing or failed builds.Jan 26 2022, 4:59 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 26 2022, 5:00 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript