summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2019-12-23 18:00:55 +0700
committerIgor Kudrin <ikudrin@accesssoftek.com>2020-01-15 17:19:08 +0700
commit2142e20f50954b9b5085e9b9461efc318a3348c0 (patch)
tree792959c7bc2fc67b0391bc5c302b5ddd776eb830 /llvm/lib/DebugInfo
parent4b1d471fa61f2d390d4dd5f2e95862a3cb5a6ec0 (diff)
downloadbcm5719-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.cpp4
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;
}
OpenPOWER on IntegriCloud