diff options
| author | Igor Kudrin <ikudrin@accesssoftek.com> | 2019-07-24 11:34:29 +0000 |
|---|---|---|
| committer | Igor Kudrin <ikudrin@accesssoftek.com> | 2019-07-24 11:34:29 +0000 |
| commit | 3daefb07448ae14ce7a4141b21cfe6ed1242e244 (patch) | |
| tree | 063da3523b7661d987d465b38e5285b3e924808e /llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp | |
| parent | ec10d5c6c10cc7749f06e49359407907687fd771 (diff) | |
| download | bcm5719-llvm-3daefb07448ae14ce7a4141b21cfe6ed1242e244.tar.gz bcm5719-llvm-3daefb07448ae14ce7a4141b21cfe6ed1242e244.zip | |
[DWARF][NFC] Add constants for reserved values of an initial length field.
Differential Revision: https://reviews.llvm.org/D65039
llvm-svn: 366887
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp')
| -rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp b/llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp index e38e706227d..6fee08051aa 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp @@ -26,7 +26,7 @@ Error DWARFListTableHeader::extract(DWARFDataExtractor Data, SectionName.data(), *OffsetPtr); // TODO: Add support for DWARF64. HeaderData.Length = Data.getRelocatedValue(4, OffsetPtr); - if (HeaderData.Length == 0xffffffffu) + if (HeaderData.Length == dwarf::DW_LENGTH_DWARF64) return createStringError(errc::not_supported, "DWARF64 is not supported in %s at offset 0x%" PRIx32, SectionName.data(), HeaderOffset); |

