[Lldb-commits] [PATCH] D96779: [lldb] Fix shared library directory computation on windows

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 16 11:03:05 PST 2021


labath added inline comments.


================
Comment at: lldb/include/lldb/Host/HostInfoBase.h:44-46
+  using SharedLibraryDirectoryHelper = void(FileSpec &this_file);
+
+  static void Initialize(SharedLibraryDirectoryHelper *helper = nullptr);
----------------
JDevlieghere wrote:
> Why a function pointer and no `function_ref`?
function_ref can only be used for objects which do not escape the current function (just like StringRef), while this value is persisted. It could be a std::function, but that seems a bit overkill.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96779



More information about the lldb-commits mailing list