mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
[DWARF] Make dwarf::getUnitLengthFieldByteSize() constexpr. NFC.
This will help make some expressions in upcoming patches constexpr. Differential Revision: https://reviews.llvm.org/D73036
This commit is contained in:
parent
25f6cfa0aa
commit
6e98885794
@ -564,7 +564,7 @@ struct FormParams {
|
||||
};
|
||||
|
||||
/// 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;
|
||||
|
Loading…
Reference in New Issue
Block a user