diff options
author | Lawrence D'Anna <lawrence_danna@apple.com> | 2019-10-09 21:50:52 +0000 |
---|---|---|
committer | Lawrence D'Anna <lawrence_danna@apple.com> | 2019-10-09 21:50:52 +0000 |
commit | 5da2bc22badde8748a71b1e8ad1ef0bd8e2ce386 (patch) | |
tree | f8aa7c86eb9af03b4a32a1f0fa2abe2a2be1df9e /lldb/source/API/SBDebugger.cpp | |
parent | 9eb13719236458cd0c035ebbe882cfbf0add7bfc (diff) | |
download | bcm5719-llvm-5da2bc22badde8748a71b1e8ad1ef0bd8e2ce386.tar.gz bcm5719-llvm-5da2bc22badde8748a71b1e8ad1ef0bd8e2ce386.zip |
remove a smattering of isolated, unnecessary uses of FILE*
Summary:
There a a few call sites that use FILE* which are easy to
fix without disrupting anything else.
Reviewers: JDevlieghere, jasonmolenda, labath
Reviewed By: JDevlieghere, labath
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D68444
llvm-svn: 374239
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r-- | lldb/source/API/SBDebugger.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index 4bc25c40046..4d27b43e675 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -467,10 +467,8 @@ void SBDebugger::HandleCommand(const char *command) { sb_interpreter.HandleCommand(command, result, false); - if (GetErrorFileHandle() != nullptr) - result.PutError(GetErrorFile()); - if (GetOutputFileHandle() != nullptr) - result.PutOutput(GetOutputFile()); + result.PutError(m_opaque_sp->GetErrorStream().GetFileSP()); + result.PutOutput(m_opaque_sp->GetOutputStream().GetFileSP()); if (!m_opaque_sp->GetAsyncExecution()) { SBProcess process(GetCommandInterpreter().GetProcess()); |