summaryrefslogtreecommitdiff
path: root/tools/driver
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2018-04-27 19:11:14 +0000
committerNico Weber <nicolasweber@gmx.de>2018-04-27 19:11:14 +0000
commit3ffe6de5f1d998c5c443d459501b8304c9c75ad6 (patch)
treeb82f63b142ca3858e6eb3146da462fcd48b45a93 /tools/driver
parent38b6bf084ebd78ba346e69fbcebe3acf2770ede5 (diff)
downloadclang-3ffe6de5f1d998c5c443d459501b8304c9c75ad6.tar.gz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331069 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver')
-rw-r--r--tools/driver/driver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp
index 1913996aeb..c83e1036eb 100644
--- a/tools/driver/driver.cpp
+++ b/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.