This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Simplify DWARFUnit::determineStringOffsetsTableContribution(). NFC.
ClosedPublic

Authored by ikudrin on Apr 20 2020, 3:51 AM.

Details

Summary

The method is called from only one place and the call is already guarded by a condition which checks that IsDWO is false.

Diff Detail

Event Timeline

ikudrin created this revision.Apr 20 2020, 3:51 AM
jhenderson added inline comments.Apr 20 2020, 5:37 AM
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
966

Perhaps it's worth asserting that IsDWO is false?

ikudrin updated this revision to Diff 258718.Apr 20 2020, 6:25 AM
ikudrin marked an inline comment as done.
  • Added assert(!IsDWO) to determineStringOffsetsTableContribution().
  • Added another assert(IsDWO) to determineStringOffsetsTableContributionDWO() for the completeness.
This revision is now accepted and ready to land.Apr 20 2020, 6:30 AM
This revision was automatically updated to reflect the committed changes.