Author: Jonas Devlieghere Date: 2024-10-14T15:02:02+01:00 New Revision: 3dedcab6d9b660a690d8fe5ddad3d43276a82708
URL: https://github.com/llvm/llvm-project/commit/3dedcab6d9b660a690d8fe5ddad3d43276a82708 DIFF: https://github.com/llvm/llvm-project/commit/3dedcab6d9b660a690d8fe5ddad3d43276a82708.diff LOG: [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. 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 abca6068d3604a..6857a29b039902 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -111,17 +111,7 @@ void Host::SystemLog(Severity severity, llvm::StringRef message) { syslog(level, "%s", message.data()); } #else -void Host::SystemLog(Severity severity, llvm::StringRef message) { - switch (severity) { - case lldb::eSeverityInfo: - case lldb::eSeverityWarning: - llvm::outs() << message; - break; - case lldb::eSeverityError: - llvm::errs() << message; - break; - } -} +void Host::SystemLog(Severity severity, llvm::StringRef message) {} #endif #endif _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits