diff options
author | Benjamin Maxwell <benjamin.maxwell@arm.com> | 2023-02-07 10:36:34 +0000 |
---|---|---|
committer | Benjamin Maxwell <benjamin.maxwell@arm.com> | 2023-02-10 14:44:18 +0000 |
commit | f1837c7074788aa9b03046cb64496f62c0c8c361 (patch) | |
tree | ecee8eb6812cc214a45c1fb51ba64c2a884604e0 /llvm/lib/BinaryFormat/Dwarf.cpp | |
parent | 04f4c4cc59db0f4db9cddcc5846d98491d4b65f5 (diff) | |
download | llvm-f1837c7074788aa9b03046cb64496f62c0c8c361.zip llvm-f1837c7074788aa9b03046cb64496f62c0c8c361.tar.gz llvm-f1837c7074788aa9b03046cb64496f62c0c8c361.tar.bz2 |
[DebugInfo] Handle missed DW_FORM_addrx3 and DW_FORM_strx3 cases
This fixes a few places where the addrx3 and strx3 forms were missed.
Previously this meant if one of these forms appeared somewhere various
errors could occur. This now also adds an extra test case for the addrx3
form (which previously failed).
Differential Revision: https://reviews.llvm.org/D143488
Diffstat (limited to 'llvm/lib/BinaryFormat/Dwarf.cpp')
-rw-r--r-- | llvm/lib/BinaryFormat/Dwarf.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/BinaryFormat/Dwarf.cpp b/llvm/lib/BinaryFormat/Dwarf.cpp index fdf12a8..12e9c73 100644 --- a/llvm/lib/BinaryFormat/Dwarf.cpp +++ b/llvm/lib/BinaryFormat/Dwarf.cpp @@ -737,6 +737,7 @@ std::optional<uint8_t> llvm::dwarf::getFixedFormByteSize(dwarf::Form Form, return 2; case DW_FORM_strx3: + case DW_FORM_addrx3: return 3; case DW_FORM_data4: |