[all-commits] [llvm/llvm-project] d372a8: [lldb/pecoff] Use a different llvm createBinary ov...

Pavel Labath via All-commits all-commits at lists.llvm.org
Fri Jul 10 02:57:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d372a8e8bce266bb4043e6a0bfd76c7e5bf457a5
      https://github.com/llvm/llvm-project/commit/d372a8e8bce266bb4043e6a0bfd76c7e5bf457a5
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2020-07-10 (Fri, 10 Jul 2020)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
    M lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h

  Log Message:
  -----------
  [lldb/pecoff] Use a different llvm createBinary overload for parsing

Change the code the use the version which accepts a memory buffer,
instead of the one taking a file name.

This ensures we are not loading the file into memory twice
(ObjectFilePECOFF also loads a copy), reducing our memory footprint, as
well as enabling additional goodies in the future, like being able to
open files which don't exist on disk (D83512).




More information about the All-commits mailing list