[Lldb-commits] [lldb] 87a3293 - [lldb] Move Host::SystemLog out of !defined(_WIN32)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 24 11:18:38 PDT 2022


Author: Jonas Devlieghere
Date: 2022-06-24T11:18:31-07:00
New Revision: 87a32939611ab2972acc7a8e796f8d9e571a6f3a

URL: https://github.com/llvm/llvm-project/commit/87a32939611ab2972acc7a8e796f8d9e571a6f3a
DIFF: https://github.com/llvm/llvm-project/commit/87a32939611ab2972acc7a8e796f8d9e571a6f3a.diff

LOG: [lldb] Move Host::SystemLog out of !defined(_WIN32)

The definition of Host::SystemLog was (unintentionally) guarded by
!defined(_WIN32).

Added: 
    

Modified: 
    lldb/source/Host/common/Host.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp
index 925ed956f09b..a0834ca15274 100644
--- a/lldb/source/Host/common/Host.cpp
+++ b/lldb/source/Host/common/Host.cpp
@@ -90,6 +90,10 @@ int __pthread_fchdir(int fildes);
 using namespace lldb;
 using namespace lldb_private;
 
+#if !defined(__APPLE__)
+void Host::SystemLog(llvm::StringRef message) { llvm::errs() << message; }
+#endif
+
 #if !defined(__APPLE__) && !defined(_WIN32)
 static thread_result_t
 MonitorChildProcessThreadFunction(::pid_t pid,
@@ -106,10 +110,6 @@ llvm::Expected<HostThread> Host::StartMonitoringChildProcess(
   });
 }
 
-#if !defined(__APPLE__)
-void Host::SystemLog(llvm::StringRef message) { llvm::errs() << message; }
-#endif
-
 #ifndef __linux__
 // Scoped class that will disable thread canceling when it is constructed, and
 // exception safely restore the previous value it when it goes out of scope.


        


More information about the lldb-commits mailing list