Skip to content

Commit 3dedcab

Browse files
authored
[lldb] Make the system log a NOOP on Windows (#112052)
Windows doesn't have a built-in system log. Previously we got away with writing to stdout and stderr because it was used only sporadically. As we're trying to make the system log more useful on the other platforms, the increased use become a concern. Make it a NOOP until someone figures out a reasonable alternative.
1 parent 91a0fec commit 3dedcab

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

lldb/source/Host/common/Host.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,7 @@ void Host::SystemLog(Severity severity, llvm::StringRef message) {
111111
syslog(level, "%s", message.data());
112112
}
113113
#else
114-
void Host::SystemLog(Severity severity, llvm::StringRef message) {
115-
switch (severity) {
116-
case lldb::eSeverityInfo:
117-
case lldb::eSeverityWarning:
118-
llvm::outs() << message;
119-
break;
120-
case lldb::eSeverityError:
121-
llvm::errs() << message;
122-
break;
123-
}
124-
}
114+
void Host::SystemLog(Severity severity, llvm::StringRef message) {}
125115
#endif
126116
#endif
127117

0 commit comments

Comments
 (0)