llvm.org GIT mirror llvm / ab9c161
[lto] Disable dialog boxes on crash on Windows. This has to be done in the DLL because the state doesn't cross DLL boundaries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227471 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 4 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1717 #include "llvm/LTO/LTOCodeGenerator.h"
1818 #include "llvm/LTO/LTOModule.h"
1919 #include "llvm/Support/MemoryBuffer.h"
20 #include "llvm/Support/Signals.h"
2021 #include "llvm/Support/TargetSelect.h"
2122
2223 // extra command-line flags needed for LTOCodeGenerator
5051 // Initialize the configured targets if they have not been initialized.
5152 static void lto_initialize() {
5253 if (!initialized) {
54 #ifdef LLVM_ON_WIN32
55 // Dialog box on crash disabling doesn't work across DLL boundaries, so do
56 // it here.
57 llvm::sys::DisableSystemDialogsOnCrash();
58 #endif
59
5360 InitializeAllTargetInfos();
5461 InitializeAllTargets();
5562 InitializeAllTargetMCs();