[PATCH] D32177: Using address range map to speedup finding inline stack for address.

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 18 10:34:20 PDT 2017


danielcdh added inline comments.


================
Comment at: include/llvm/DebugInfo/DWARF/DWARFUnit.h:140
+  // Map from range's start address to end address and corresponding DIE.
+  std::map<uint64_t, std::pair<uint64_t, DWARFDie>> AddrDieMap;
   typedef iterator_range<std::vector<DWARFDebugInfoEntry>::iterator>
----------------
dblaikie wrote:
> Would llvm::IntervalMap be more suitable here? (or at least DenseMap, perhaps)
They did not provide upper_bound method.


https://reviews.llvm.org/D32177





More information about the llvm-commits mailing list