[PATCH] [Support] Lazy load of dbghlp.dll on Windows
Leny Kholodov
leny.kholodov at gmail.com
Thu Jun 25 10:07:14 PDT 2015
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 --------------
A non-text attachment was scrubbed...
Name: D10737.28470.patch
Type: text/x-patch
Size: 9197 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150625/b385d502/attachment.bin>
More information about the cfe-commits
mailing list