JDevlieghere added inline comments.

================
Comment at: lldb/source/Utility/DataExtractor.cpp:911
 uint32_t DataExtractor::Skip_LEB128(offset_t *offset_ptr) const {
   uint32_t bytes_consumed = 0;
   const uint8_t *src = PeekData(*offset_ptr, 1);
----------------
labath wrote:
> JDevlieghere wrote:
> > Should we hoist this into llvm as well (as a separate patch). It seems like 
> > at least `lld/ELF/EhFrame.cpp` is using the same functionality. 
> TBH, I'm tempted to just delete it. I doubt that "skipping" an LEB128 is 
> going to be noticeably faster than "reading" it, and llvm::DataExtractor has 
> no equivalent function...
Even better :-) 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81453



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
  • [Lldb-commits] [PATCH] ... Raphael Isemann via Phabricator via lldb-commits
    • [Lldb-commits] [PA... Jonas Devlieghere via Phabricator via lldb-commits

Reply via email to