This is an archive of the discontinued LLVM Phabricator instance.

[Dsymutil][Debuginfo][NFC] Refactor dsymutil to separate DWARF optimizing part. #2.
ClosedPublic

Authored by avl on Dec 10 2019, 7:31 AM.

Details

Summary

That patch is extracted from the D70709. It moves CompileUnit, DeclContext
into llvm/DebugInfo/DWARF. It also adds new file DWARFOptimizer with
AddressesMap class. AddressesMap generalizes functionality from RelocationManager.

It passes check-all testing. MD5 checksum for clang .dSYM bundle matches for the dsymutil with/without that patch.

Diff Detail

Event Timeline

avl created this revision.Dec 10 2019, 7:31 AM
avl edited the summary of this revision. (Show Details)Dec 12 2019, 12:51 AM
aprantl added inline comments.Dec 16 2019, 2:45 PM
llvm/include/llvm/DebugInfo/DWARF/DWARFOptimizer.h
2

this needs a -*- C++ -*- marker. I'd remove the " Dwarf debug info optimizer " comment, too.

JDevlieghere added inline comments.Dec 17 2019, 11:21 AM
llvm/include/llvm/DebugInfo/DWARF/DWARFOptimizer.h
21

This isn't used (yet)?

77

Comments should be sentences.

81

Same here, needs capitalization and full stop.

avl marked 3 inline comments as done.Dec 17 2019, 12:54 PM
avl added inline comments.
llvm/include/llvm/DebugInfo/DWARF/DWARFOptimizer.h
21

right. This would be used with last patch extracted from D70709. I decided that it is OK to put it this time. But If it would be better to move it into last patch then I would remove it for now.

77

Ok.

81

OK.

avl updated this revision to Diff 234516.Dec 18 2019, 5:02 AM

addressed comments.

This revision is now accepted and ready to land.Dec 18 2019, 10:21 AM
This revision was automatically updated to reflect the committed changes.