diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-04-29 00:45:03 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-04-29 00:45:03 +0000 |
commit | 63033d33c831112a8aa4f799e797d324466ef674 (patch) | |
tree | f0da6edc5ad62458e9fa7354170ef110a9fa5331 /tools/lto | |
parent | e2e5efbda0be1d887f0b215b8b2d261c7921a4e5 (diff) |
s/LLVM_ON_WIN32/_WIN32/, llvm
LLVM_ON_WIN32 is set exactly with MSVC and MinGW (but not Cygwin) in
HandleLLVMOptions.cmake, which is where _WIN32 defined too. Just use the
default macro instead of a reinvented one.
See thread "Replacing LLVM_ON_WIN32 with just _WIN32" on llvm-dev and cfe-dev.
No intended behavior change.
This moves over all uses of the macro, but doesn't remove the definition
of it in (llvm-)config.h yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/lto.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index 49d53e62d77..f9b518ca039 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -96,7 +96,7 @@ struct LTOToolDiagnosticHandler : public DiagnosticHandler { // Initialize the configured targets if they have not been initialized. static void lto_initialize() { if (!initialized) { -#ifdef LLVM_ON_WIN32 +#ifdef _WIN32 // Dialog box on crash disabling doesn't work across DLL boundaries, so do // it here. llvm::sys::DisableSystemDialogsOnCrash(); |