[PATCH] D73036: [DWARF] Make dwarf::getUnitLengthFieldByteSize() constexpr. NFC.
Igor Kudrin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 21:44:07 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd6f39cfed06c: [DWARF] Make dwarf::getUnitLengthFieldByteSize() constexpr. NFC. (authored by ikudrin).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73036/new/
https://reviews.llvm.org/D73036
Files:
llvm/include/llvm/BinaryFormat/Dwarf.h
Index: llvm/include/llvm/BinaryFormat/Dwarf.h
===================================================================
--- llvm/include/llvm/BinaryFormat/Dwarf.h
+++ llvm/include/llvm/BinaryFormat/Dwarf.h
@@ -564,7 +564,7 @@
};
/// Get the byte size of the unit length field depending on the DWARF format.
-inline uint8_t getUnitLengthFieldByteSize(DwarfFormat Format) {
+constexpr uint8_t getUnitLengthFieldByteSize(DwarfFormat Format) {
switch (Format) {
case DwarfFormat::DWARF32:
return 4;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73036.239773.patch
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200123/2af5b911/attachment.bin>
More information about the llvm-commits
mailing list