diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2025-02-20 11:13:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-20 11:13:46 -0800 |
commit | 78d82d3ae7ac99833e1b9c0b529c256f90b6c6cc (patch) | |
tree | 1b99cd3d655c9c3b6b30f195e97d43ea3f7221e4 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 6d84fae60ed2c227dfcb349a144cbc0cdd3bcc4b (diff) | |
download | llvm-78d82d3ae7ac99833e1b9c0b529c256f90b6c6cc.zip llvm-78d82d3ae7ac99833e1b9c0b529c256f90b6c6cc.tar.gz llvm-78d82d3ae7ac99833e1b9c0b529c256f90b6c6cc.tar.bz2 |
[lldb] Store StreamAsynchronousIO in a unique_ptr (NFC) (#127961)
Make StreamAsynchronousIO an unique_ptr instead of a shared_ptr. I tried
passing the class by value, but the llvm::raw_ostream forwarder stored
in the Stream parent class isn't movable and I don't think it's worth
changing that. Additionally, there's a few places that expect a
StreamSP, which are easily created from a StreamUP.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index f365951..8a8c0f92 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -5495,8 +5495,7 @@ public: if (process) { StreamSP output_stream_sp = result.GetImmediateOutputStream(); if (!output_stream_sp) - output_stream_sp = - StreamSP(m_interpreter.GetDebugger().GetAsyncOutputStream()); + output_stream_sp = m_interpreter.GetDebugger().GetAsyncOutputStream(); result.SetImmediateOutputStream(output_stream_sp); const uint32_t num_packets = |