summaryrefslogtreecommitdiff
path: root/tools/driver/driver.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-03-12 16:07:46 +0000
committerHans Wennborg <hans@hanshq.net>2014-03-12 16:07:46 +0000
commitd0f57d66d4112663d98fe96216806f8515729011 (patch)
tree4242ffae5b619fbb1f15b034b6a8eaf75446825a /tools/driver/driver.cpp
parent04d8e69db368f2595f4d9e944e5ec589e72b47bb (diff)
downloadclang-d0f57d66d4112663d98fe96216806f8515729011.tar.gz
clang-d0f57d66d4112663d98fe96216806f8515729011.tar.bz2
clang-d0f57d66d4112663d98fe96216806f8515729011.tar.xz
Check for LLVM_ON_WIN32 instead of _WIN32.
This is a follow-up to r203624 to address Anton's comment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver/driver.cpp')
-rw-r--r--tools/driver/driver.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp
index e8860a2156..beb271f810 100644
--- a/tools/driver/driver.cpp
+++ b/tools/driver/driver.cpp
@@ -25,6 +25,7 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
+#include "llvm/Config/config.h"
#include "llvm/Option/ArgList.h"
#include "llvm/Option/OptTable.h"
#include "llvm/Option/Option.h"
@@ -227,7 +228,7 @@ static void ParseProgName(SmallVectorImpl<const char *> &ArgVector,
{ "++", "--driver-mode=g++" },
};
std::string ProgName(llvm::sys::path::stem(ArgVector[0]));
-#ifdef _WIN32
+#ifdef LLVM_ON_WIN32
// Transform to lowercase for case insensitive file systems.
std::transform(ProgName.begin(), ProgName.end(), ProgName.begin(),
toLowercase);
@@ -445,7 +446,7 @@ int main(int argc_, const char **argv_) {
llvm::llvm_shutdown();
-#ifdef _WIN32
+#ifdef LLVM_ON_WIN32
// Exit status should not be negative on Win32, unless abnormal termination.
// Once abnormal termiation was caught, negative status should not be
// propagated.