summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/common/File.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2018-04-10 13:33:45 +0000
committerNico Weber <nicolasweber@gmx.de>2018-04-10 13:33:45 +0000
commitb1cb0b7957ecb048955bda8f088e34c477938f7f (patch)
treeeba7b6da7d34aef46f801eccba177a69bdbc0e38 /lldb/source/Host/common/File.cpp
parentfb647300058cbc67b5ca8ad32aef7ff2db33cf3b (diff)
downloadbcm5719-llvm-b1cb0b7957ecb048955bda8f088e34c477938f7f.tar.gz
bcm5719-llvm-b1cb0b7957ecb048955bda8f088e34c477938f7f.zip
s/LLVM_ON_WIN32/_WIN32/, lldb
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: 329697
Diffstat (limited to 'lldb/source/Host/common/File.cpp')
-rw-r--r--lldb/source/Host/common/File.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp
index 6ee4e894756..22b42c6f1c7 100644
--- a/lldb/source/Host/common/File.cpp
+++ b/lldb/source/Host/common/File.cpp
@@ -100,7 +100,7 @@ int File::GetDescriptor() const {
// Don't open the file descriptor if we don't need to, just get it from the
// stream if we have one.
if (StreamIsValid()) {
-#if defined(LLVM_ON_WIN32)
+#if defined(_WIN32)
return _fileno(m_stream);
#else
return fileno(m_stream);
OpenPOWER on IntegriCloud