This is an archive of the discontinued LLVM Phabricator instance.

[DWARF] Make dwarf::getDwarfOffsetByteSize() a free function. NFC.
ClosedPublic

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

Details

Summary

This will help simplify code in upcoming patches and make some expressions constexpr.

Diff Detail

Event Timeline

ikudrin created this revision.Jan 20 2020, 5:41 AM
aprantl accepted this revision.Jan 21 2020, 10:27 AM
aprantl added inline comments.
llvm/include/llvm/BinaryFormat/Dwarf.h
543

Cool. I hadn't realized that llvm_unreachable is constexpr.

This revision is now accepted and ready to land.Jan 21 2020, 10:27 AM
This revision was automatically updated to reflect the committed changes.