diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-04-27 19:11:14 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-04-27 19:11:14 +0000 |
commit | 1865df49960e34cc90d0083b0e0cd4771c0feb35 (patch) | |
tree | e6c91dba6b86e3fc8970a42e8291771e32f82239 /clang/tools/driver/driver.cpp | |
parent | ee5be798dae30d5f9414b01f76ff807edbc881aa (diff) | |
download | bcm5719-llvm-1865df49960e34cc90d0083b0e0cd4771c0feb35.tar.gz bcm5719-llvm-1865df49960e34cc90d0083b0e0cd4771c0feb35.zip |
s/LLVM_ON_WIN32/_WIN32/, clang
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.
llvm-svn: 331069
Diffstat (limited to 'clang/tools/driver/driver.cpp')
-rw-r--r-- | clang/tools/driver/driver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/driver/driver.cpp b/clang/tools/driver/driver.cpp index 1913996aebb..c83e1036eb7 100644 --- a/clang/tools/driver/driver.cpp +++ b/clang/tools/driver/driver.cpp @@ -485,7 +485,7 @@ int main(int argc_, const char **argv_) { // On Windows, abort will return an exit code of 3. In these cases, // generate additional diagnostic information if possible. bool DiagnoseCrash = CommandRes < 0 || CommandRes == 70; -#ifdef LLVM_ON_WIN32 +#ifdef _WIN32 DiagnoseCrash |= CommandRes == 3; #endif if (DiagnoseCrash) { @@ -501,7 +501,7 @@ int main(int argc_, const char **argv_) { // results now. This happens in -disable-free mode. llvm::TimerGroup::printAll(llvm::errs()); -#ifdef LLVM_ON_WIN32 +#ifdef _WIN32 // Exit status should not be negative on Win32, unless abnormal termination. // Once abnormal termiation was caught, negative status should not be // propagated. |