<commit_before>From b8a3387eee86d609b18ac880e7897252de62a0c5 Mon Sep 17 00:00:00 2001
From: <NAME> <<EMAIL>>
Date: Fri, 15 Sep 2017 15:03:12 +0200
Subject: [PATCH] fixes to get lldb building

---
 source/Utility/CMakeLists.txt                              |  6 ++++++
 include/lldb/Host/windows/PosixApi.h                       | 14 ++++++++++----
 include/lldb/Host/windows/windows.h                        |  4 ++++
 source/Host/common/MainLoop.cpp                            |  1 +
 source/Host/windows/Windows.cpp                            |  3 +++
 .../gdb-remote/GDBRemoteCommunicationServerPlatform.cpp    |  1 +
 source/Plugins/Process/gdb-remote/ProcessGDBRemote.h       |  1 +
 tools/lldb-mi/MIDataTypes.h                                |  2 ++
 tools/lldb-mi/Platform.h                                   |  4 ++++
 9 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/cmake/LLDBDependencies.cmake b/cmake/LLDBDependencies.cmake
index 55ce379..ae65ebe 100644
--- a/source/Utility/CMakeLists.txt
+++ b/source/Utility/CMakeLists.txt
@@ -6,6 +6,12 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
     ws2_32
     rpcrt4
     )
+  if (MINGW)
+    list(APPEND LLDB_SYSTEM_LIBS
+      dbghelp
+      psapi
+      )
+  endif ()
 endif ()
 
 if (NOT LLDB_DISABLE_LIBEDIT)
diff --git a/include/lldb/Host/windows/PosixApi.h b/include/lldb/Host/windows/PosixApi.h
index de70266..51fba95 100644
--- a/include/lldb/Host/windows/PosixApi.h
+++ b/include/lldb/Host/windows/PosixApi.h
@@ -73,13 +73,9 @@ typedef uint32_t pid_t;
 #define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR)
 #endif
 <commit_msg>clang: 0501-fixes-to-get-lldb-building.patch: fixed for 9.0<commit_after>From b8a3387eee86d609b18ac880e7897252de62a0c5 Mon Sep 17 00:00:00 2001
From: <NAME> <<EMAIL>>
Date: Fri, 15 Sep 2017 15:03:12 +0200
Subject: [PATCH] fixes to get lldb building

---
 source/Utility/CMakeLists.txt                              |  6 ++++++
 include/lldb/Host/windows/PosixApi.h                       | 14 ++++++++++----
 include/lldb/Host/windows/windows.h                        |  4 ++++
 source/Host/common/MainLoop.cpp                            |  1 +
 source/Host/windows/Windows.cpp                            |  3 +++
 .../gdb-remote/GDBRemoteCommunicationServerPlatform.cpp    |  1 +
 source/Plugins/Process/gdb-remote/ProcessGDBRemote.h       |  1 +
 tools/lldb-mi/MIDataTypes.h                                |  2 ++
 tools/lldb-mi/Platform.h                                   |  4 ++++
 9 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/cmake/LLDBDependencies.cmake b/cmake/LLDBDependencies.cmake
index 55ce379..ae65ebe 100644
--- a/source/Utility/CMakeLists.txt
+++ b/source/Utility/CMakeLists.txt
@@ -6,6 +6,12 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
 if (CMAKE_SYSTEM_NAME MATCHES "Windows")
   list(APPEND LLDB_SYSTEM_LIBS ws2_32 rpcrt4)
 endif ()
+if (MINGW)
+  list(APPEND LLDB_SYSTEM_LIBS
+    dbghelp
+    psapi
+    )
+endif ()
 
 if (NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB )
     list(APPEND LLDB_SYSTEM_LIBS atomic)
diff --git a/include/lldb/Host/windows/PosixApi.h b/include/lldb/Host/windows/PosixApi.h
index de70266..51fba95 100644
--- a/include/lldb/Host/windows/PosixApi.h
+++ b/include/lldb/Host/windows/PosixApi.h
@@ -73,13 +73,9 @@ typedef uint32_t pid_t;
 #define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR)
 #endif
 
{'fraction_non_alphanumeric': 0.14008941877794337, 'fraction_numerical': 0.07034277198211625, 'mean_word_length': 2.3194856577645897, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2270514', 'n_tokens_mistral': 1429, 'n_tokens_neox': 1246, 'n_words': 205}