Skip to content

Commit 87a3293

Browse files
committed
[lldb] Move Host::SystemLog out of !defined(_WIN32)
The definition of Host::SystemLog was (unintentionally) guarded by !defined(_WIN32).
1 parent 9a3d60e commit 87a3293

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lldb/source/Host/common/Host.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ int __pthread_fchdir(int fildes);
9090
using namespace lldb;
9191
using namespace lldb_private;
9292

93+
#if !defined(__APPLE__)
94+
void Host::SystemLog(llvm::StringRef message) { llvm::errs() << message; }
95+
#endif
96+
9397
#if !defined(__APPLE__) && !defined(_WIN32)
9498
static thread_result_t
9599
MonitorChildProcessThreadFunction(::pid_t pid,
@@ -106,10 +110,6 @@ llvm::Expected<HostThread> Host::StartMonitoringChildProcess(
106110
});
107111
}
108112

109-
#if !defined(__APPLE__)
110-
void Host::SystemLog(llvm::StringRef message) { llvm::errs() << message; }
111-
#endif
112-
113113
#ifndef __linux__
114114
// Scoped class that will disable thread canceling when it is constructed, and
115115
// exception safely restore the previous value it when it goes out of scope.

0 commit comments

Comments
 (0)