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/unittests/Driver/ToolChainTest.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/unittests/Driver/ToolChainTest.cpp')
-rw-r--r-- | clang/unittests/Driver/ToolChainTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/unittests/Driver/ToolChainTest.cpp b/clang/unittests/Driver/ToolChainTest.cpp index 93cf12b3c2b..d4198eaeb1c 100644 --- a/clang/unittests/Driver/ToolChainTest.cpp +++ b/clang/unittests/Driver/ToolChainTest.cpp @@ -69,7 +69,7 @@ TEST(ToolChainTest, VFSGCCInstallation) { llvm::raw_string_ostream OS(S); C->getDefaultToolChain().printVerboseInfo(OS); } -#if LLVM_ON_WIN32 +#if _WIN32 std::replace(S.begin(), S.end(), '\\', '/'); #endif EXPECT_EQ( @@ -109,7 +109,7 @@ TEST(ToolChainTest, VFSGCCInstallationRelativeDir) { llvm::raw_string_ostream OS(S); C->getDefaultToolChain().printVerboseInfo(OS); } -#if LLVM_ON_WIN32 +#if _WIN32 std::replace(S.begin(), S.end(), '\\', '/'); #endif EXPECT_EQ("Found candidate GCC installation: " |