diff options
author | Igor Kudrin <ikudrin@accesssoftek.com> | 2019-12-23 18:00:55 +0700 |
---|---|---|
committer | Igor Kudrin <ikudrin@accesssoftek.com> | 2020-01-15 17:19:08 +0700 |
commit | 2142e20f50954b9b5085e9b9461efc318a3348c0 (patch) | |
tree | 792959c7bc2fc67b0391bc5c302b5ddd776eb830 /llvm/lib/DebugInfo | |
parent | 4b1d471fa61f2d390d4dd5f2e95862a3cb5a6ec0 (diff) | |
download | bcm5719-llvm-2142e20f50954b9b5085e9b9461efc318a3348c0.tar.gz bcm5719-llvm-2142e20f50954b9b5085e9b9461efc318a3348c0.zip |
[DWARF] Fix DWARFDebugAranges to support 64-bit CU offsets.
DWARFContext, the only user of this class, can already handle such offsets.
Differential Revision: https://reviews.llvm.org/D71834
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp index ca6043109cd..fa157e86885 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugAranges.cpp @@ -113,10 +113,10 @@ void DWARFDebugAranges::construct() { Endpoints.shrink_to_fit(); } -uint32_t DWARFDebugAranges::findAddress(uint64_t Address) const { +uint64_t DWARFDebugAranges::findAddress(uint64_t Address) const { RangeCollIterator It = partition_point(Aranges, [=](Range R) { return R.HighPC() <= Address; }); if (It != Aranges.end() && It->LowPC <= Address) return It->CUOffset; - return -1U; + return -1ULL; } |