This is an archive of the discontinued LLVM Phabricator instance.

[DWARF] Make dwarf::getUnitLengthFieldByteSize() constexpr. NFC.
ClosedPublic

Authored by ikudrin on Jan 20 2020, 5:28 AM.

Details

Summary

This will help make some expressions in upcoming patches also constexpr.

Diff Detail

Event Timeline

ikudrin created this revision.Jan 20 2020, 5:28 AM
This revision is now accepted and ready to land.Jan 22 2020, 6:02 AM

Out of curiosity - is there any particular need/use for this function to be constexpr?

Out of curiosity - is there any particular need/use for this function to be constexpr?

Yes, this allowed converting some expressions in D71932 and D72900 from static const to constexpr.

This revision was automatically updated to reflect the committed changes.