From 57179860a0547afc482171ef304976c7761a3fd8 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sat, 27 Apr 2019 06:19:42 +0000 Subject: [CommandObject] Use GetDebugger() helper method (NFC) In r359354 a GetDebugger() method was added to the CommandObject class, so that we didn't have to go through the command interpreter to obtain the script interpreter. This patch simplifies other call sites where m_interpreter.GetDebugger() was used, and replaces them with a shorter call to the new method. llvm-svn: 359373 --- lldb/source/Commands/CommandObjectLog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/Commands/CommandObjectLog.cpp') diff --git a/lldb/source/Commands/CommandObjectLog.cpp b/lldb/source/Commands/CommandObjectLog.cpp index 1add4b2..2ad61de 100644 --- a/lldb/source/Commands/CommandObjectLog.cpp +++ b/lldb/source/Commands/CommandObjectLog.cpp @@ -168,9 +168,9 @@ protected: std::string error; llvm::raw_string_ostream error_stream(error); - bool success = m_interpreter.GetDebugger().EnableLog( - channel, args.GetArgumentArrayRef(), log_file, m_options.log_options, - error_stream); + bool success = + GetDebugger().EnableLog(channel, args.GetArgumentArrayRef(), log_file, + m_options.log_options, error_stream); result.GetErrorStream() << error_stream.str(); if (success) -- cgit v1.1