summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2019-07-24 11:34:29 +0000
committerIgor Kudrin <ikudrin@accesssoftek.com>2019-07-24 11:34:29 +0000
commit3daefb07448ae14ce7a4141b21cfe6ed1242e244 (patch)
tree063da3523b7661d987d465b38e5285b3e924808e /llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp
parentec10d5c6c10cc7749f06e49359407907687fd771 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud