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

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 17:14:14 PST 2020


ikudrin added a comment.

In D73036#1834734 <https://reviews.llvm.org/D73036#1834734>, @dblaikie wrote:

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


Yes, this allowed converting some expressions in D71932 <https://reviews.llvm.org/D71932> and D72900 <https://reviews.llvm.org/D72900> from `static const` to `constexpr`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D73036/new/

https://reviews.llvm.org/D73036





More information about the llvm-commits mailing list