summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.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/DWARFDebugFrame.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/DWARFDebugFrame.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
index 64336934d21..dc59b1f466f 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
@@ -364,7 +364,7 @@ void DWARFDebugFrame::parse(DWARFDataExtractor Data) {
uint64_t Length = Data.getRelocatedValue(4, &Offset);
uint64_t Id;
- if (Length == UINT32_MAX) {
+ if (Length == dwarf::DW_LENGTH_DWARF64) {
// DWARF-64 is distinguished by the first 32 bits of the initial length
// field being 0xffffffff. Then, the next 64 bits are the actual entry
// length.
OpenPOWER on IntegriCloud