Skip to content

Commit d6f39cf

Browse files
committed
[DWARF] Make dwarf::getUnitLengthFieldByteSize() constexpr. NFC.
This will help make some expressions in upcoming patches constexpr. Differential Revision: https://reviews.llvm.org/D73036
1 parent dcff396 commit d6f39cf

File tree

1 file changed

+1
-1
lines changed
  • llvm/include/llvm/BinaryFormat

1 file changed

+1
-1
lines changed

llvm/include/llvm/BinaryFormat/Dwarf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ struct FormParams {
564564
};
565565

566566
/// Get the byte size of the unit length field depending on the DWARF format.
567-
inline uint8_t getUnitLengthFieldByteSize(DwarfFormat Format) {
567+
constexpr uint8_t getUnitLengthFieldByteSize(DwarfFormat Format) {
568568
switch (Format) {
569569
case DwarfFormat::DWARF32:
570570
return 4;

0 commit comments

Comments
 (0)