This is an archive of the discontinued LLVM Phabricator instance.

[DWARFLinkerParallel] Add StringTable class.
ClosedPublic

Authored by avl on Apr 4 2023, 6:33 AM.

Details

Summary

This patch adds StringTable class which is used to prepare
strings for emission into the .debug_str table. Specifically,
this class translates strings if necessary, keeps them in order,
assigns index and offset.

Diff Detail

Event Timeline

avl created this revision.Apr 4 2023, 6:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2023, 6:33 AM
avl requested review of this revision.Apr 4 2023, 6:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2023, 6:33 AM
JDevlieghere added inline comments.Apr 4 2023, 11:18 AM
llvm/include/llvm/DWARFLinkerParallel/StringsForEmission.h
22 ↗(On Diff #510782)

Should we call this StringTable?

32 ↗(On Diff #510782)
71 ↗(On Diff #510782)
74 ↗(On Diff #510782)
77 ↗(On Diff #510782)
avl updated this revision to Diff 510928.Apr 4 2023, 2:30 PM

addressed comments.

avl retitled this revision from [DWARFLinkerParallel] Add StringsForEmission class. to [DWARFLinkerParallel] Add StringTable class..Apr 4 2023, 2:31 PM
avl edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Apr 4 2023, 9:57 PM
This revision was landed with ongoing or failed builds.Apr 5 2023, 2:49 AM
This revision was automatically updated to reflect the committed changes.