aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/ScriptInterpreter.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2025-02-12 08:29:06 -0800
committerGitHub <noreply@github.com>2025-02-12 08:29:06 -0800
commiteff3c343b08cfc46016708b3182ac062d45b3e21 (patch)
tree6002909d7b485bb65f261ebce0bf414df157cf92 /lldb/source/Interpreter/ScriptInterpreter.cpp
parentbee9664970d51df3f4e1d298d1bcb95bba364e17 (diff)
downloadllvm-eff3c343b08cfc46016708b3182ac062d45b3e21.zip
llvm-eff3c343b08cfc46016708b3182ac062d45b3e21.tar.gz
llvm-eff3c343b08cfc46016708b3182ac062d45b3e21.tar.bz2
[lldb] Remove Debugger::Get{Output,Error}Stream (NFC) (#126821)
Remove Debugger::GetOutputStream and Debugger::GetErrorStream in preparation for replacing both with a new variant that needs to be locked and hence can't be handed out like we do right now. The patch replaces most uses with GetAsyncOutputStream and GetAsyncErrorStream respectively. There methods return new StreamSP objects that automatically get flushed on destruction. See #126630 for more details.
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreter.cpp')
-rw-r--r--lldb/source/Interpreter/ScriptInterpreter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreter.cpp b/lldb/source/Interpreter/ScriptInterpreter.cpp
index 559b830..8d10e5d 100644
--- a/lldb/source/Interpreter/ScriptInterpreter.cpp
+++ b/lldb/source/Interpreter/ScriptInterpreter.cpp
@@ -245,8 +245,8 @@ ScriptInterpreterIORedirect::ScriptInterpreterIORedirect(
if (outfile_handle)
::setbuf(outfile_handle, nullptr);
- result->SetImmediateOutputFile(debugger.GetOutputStream().GetFileSP());
- result->SetImmediateErrorFile(debugger.GetErrorStream().GetFileSP());
+ result->SetImmediateOutputFile(debugger.GetOutputStreamSP()->GetFileSP());
+ result->SetImmediateErrorFile(debugger.GetErrorStreamSP()->GetFileSP());
}
}