[PATCH] D38237: [dwarfdump] Add support for -debug-loc=OFFSET
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 25 09:18:56 PDT 2017
aprantl added inline comments.
================
Comment at: lib/DebugInfo/DWARF/DWARFDebugLoc.cpp:55
+ Optional<uint64_t> Offset) const {
for (const LocationList &L : Locations) {
+ if (Offset && L.Offset != *Offset)
----------------
This looks like a good opportunity to add an API that uses std:lower_bound to quickly find an entry at an offset. (cf. `DWARFDebugFrame::getEntryAtOffset(uint64_t Offset)`).
We will need this anyway.
Repository:
rL LLVM
https://reviews.llvm.org/D38237
More information about the llvm-commits
mailing list