[PATCH] D32315: Introduce a new DWARFContext::getInliningInfoForAddress API to expose pointers to strings stored in DWARF file.

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 20 15:11:31 PDT 2017


danielcdh created this revision.
Herald added a subscriber: aprantl.

With the current getInliningInfoForAddress API, the FileName and FunctioName are both stored as std::string. This is not efficient for batch symbolization job as it incurs too much redundant string copy operation. This patch introduces a new API to allow user to specify customized inserter so that user can build a container that directly reference strings in the DWARF file to avoid string copy, which will speeds up batch symbolization by 2X.


https://reviews.llvm.org/D32315

Files:
  include/llvm/DebugInfo/DWARF/DWARFContext.h
  include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
  lib/DebugInfo/DWARF/DWARFContext.cpp
  lib/DebugInfo/DWARF/DWARFDebugLine.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32315.96032.patch
Type: text/x-patch
Size: 12828 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170420/163caac6/attachment.bin>


More information about the llvm-commits mailing list