llvm-project/llvm/lib/Support/Windows
Andy Yankovsky 3df88ec335 [Support] Don't print stacktrace if DbgHelp.dll hasn't been loaded yet
On Windows certain function from `Signals.h` require that `DbgHelp.dll` is loaded. This typically happens when the main program calls `llvm::InitLLVM`, however in some cases main program doesn't do that (e.g. when the application is using LLDB via `liblldb.dll`). This patch adds a safe guard to prevent crashes. More discussion in
https://reviews.llvm.org/D119009.

Reviewed By: aganea

Differential Revision: https://reviews.llvm.org/D119181
2022-02-08 16:37:36 +00:00
..
COM.inc
DynamicLibrary.inc
Host.inc [NFC] Fix build when LLVM_DEFAULT_TARGET_TRIPLE="" 2022-01-31 13:31:55 -06:00
Memory.inc
Path.inc Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17" 2022-01-26 16:55:53 +01:00
Process.inc Support: Avoid SmallVector::set_size() in Windows code 2022-01-11 17:52:41 -08:00
Program.inc Support: Avoid SmallVector::set_size() in Windows code 2022-01-11 17:52:41 -08:00
Signals.inc [Support] Don't print stacktrace if DbgHelp.dll hasn't been loaded yet 2022-02-08 16:37:36 +00:00
ThreadLocal.inc
Threading.inc
Watchdog.inc
explicit_symbols.inc