[PATCH] D59189: [perf][DebugInfo] follow up for "add SectionedAddress to DebugInfo interfaces"

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 03:59:15 PDT 2019


avl added a comment.

Oh I missed perf jit case, excuse me...

Could you set SectionIndex also,  please ? The same way how it is done in https://reviews.llvm.org/D58959 :

  uint64_t SectionIndex = object::SectionedAddress::UndefSection;
  if (auto SectOrErr = Sym.getSection())
    if (*SectOrErr != Obj.section_end())
      SectionIndex = SectOrErr.get()->getIndex();
  
  DILineInfoTable Lines = Context->getLineInfoForAddressRange(
      {*AddrOrErr, SectionIndex}, Size, FileLineInfoKind::AbsoluteFilePath);


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59189/new/

https://reviews.llvm.org/D59189





More information about the llvm-commits mailing list