Skip to content

Commit 2827308

Browse files
remove SystemLogFallback
1 parent 7a96f44 commit 2827308

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

lldb/include/lldb/Host/Host.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ class Host {
109109
/// Emit the given message to the operating system log.
110110
static void SystemLog(lldb::Severity severity, llvm::StringRef message);
111111

112-
/// Emit the given message to the stdout or stderr depending on severity.
113-
static void SystemLogFallback(lldb::Severity severity,
114-
llvm::StringRef message);
115-
116112
/// Get the process ID for the calling process.
117113
///
118114
/// \return

lldb/source/Host/common/Host.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,6 @@ using namespace lldb_private;
9191
void Host::SystemLog(Severity severity, llvm::StringRef message) {}
9292
#endif
9393

94-
void Host::SystemLogFallback(Severity severity, llvm::StringRef message) {
95-
switch (severity) {
96-
case lldb::eSeverityInfo:
97-
case lldb::eSeverityWarning:
98-
llvm::outs() << message;
99-
return;
100-
case lldb::eSeverityError:
101-
llvm::errs() << message;
102-
return;
103-
}
104-
}
105-
10694
static constexpr Log::Category g_categories[] = {
10795
{{"system"}, {"system log"}, SystemLog::System}};
10896

lldb/source/Host/windows/Host.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,13 +338,11 @@ static LPCWSTR AnsiToUtf16(const std::string &ansi) {
338338
void Host::SystemLog(Severity severity, llvm::StringRef message) {
339339
HANDLE h = event_log->GetHandle();
340340
if (!h) {
341-
SystemLogFallback(severity, message);
342341
return;
343342
}
344343

345344
LPCWSTR wide_message = AnsiToUtf16(message.str());
346345
if (!wide_message) {
347-
SystemLogFallback(severity, message);
348346
return;
349347
}
350348

0 commit comments

Comments
 (0)