diff options
| author | Hans Wennborg <hans@hanshq.net> | 2014-03-12 16:07:46 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2014-03-12 16:07:46 +0000 |
| commit | 501eadb42919f8312a55d78455a44b39e16762ed (patch) | |
| tree | 14b5f66134c9d25db988268b6d8a3f663a16ea86 /clang/tools | |
| parent | 3e699d419eebdd287e34c22d8abffa237fc1bf33 (diff) | |
| download | bcm5719-llvm-501eadb42919f8312a55d78455a44b39e16762ed.tar.gz bcm5719-llvm-501eadb42919f8312a55d78455a44b39e16762ed.zip | |
Check for LLVM_ON_WIN32 instead of _WIN32.
This is a follow-up to r203624 to address Anton's comment.
llvm-svn: 203668
Diffstat (limited to 'clang/tools')
| -rw-r--r-- | clang/tools/driver/driver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/tools/driver/driver.cpp b/clang/tools/driver/driver.cpp index e8860a21567..beb271f810e 100644 --- a/clang/tools/driver/driver.cpp +++ b/clang/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. |

