[PATCH] [Support] Lazy load of dbghlp.dll on Windows
Zachary Turner
zturner at google.com
Thu Jun 25 18:37:37 PDT 2015
Why not just make it delay load dll instead of all the LoadLibrary stuff?
On Fri, Jun 26, 2015 at 00:07 Leny Kholodov <leny.kholodov at gmail.com> wrote:
> Hi Bigcheese, rnk, zturner,
>
> This patch changes linkage with dbghlp.dll for clang from static (at load
> time) to on demand (at the first use of required functions). Clang uses
> dbghlp.dll only in minor use-cases. First of all in case of crash and in
> case of plugin load. The dbghlp.dll library can be absent on system. In
> this case clang will fail to load. With lazy load of dbghlp.dll clang can
> work even if dbghlp.dll is not available.
>
> REPOSITORY
> rL LLVM
>
> http://reviews.llvm.org/D10737
>
> Files:
> lib/Support/CMakeLists.txt
> lib/Support/Windows/DynamicLibrary.inc
> lib/Support/Windows/Signals.inc
> tools/llvm-symbolizer/LLVMSymbolize.cpp
>
> EMAIL PREFERENCES
> http://reviews.llvm.org/settings/panel/emailpreferences/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150626/5160361a/attachment.html>
More information about the cfe-commits
mailing list