aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/API/SBCommandInterpreter.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2022-02-09 14:56:45 +0100
committerPavel Labath <pavel@labath.sk>2022-02-09 16:18:27 +0100
commit96000f5c2bf99365bb45528898c864fcb1c7780b (patch)
treeb0d9e1606a82992d579bc04c99ef41406b9eb507 /lldb/source/API/SBCommandInterpreter.cpp
parent370ea1a19928a4b40fea929ae84fe6e3870ac3c6 (diff)
downloadllvm-96000f5c2bf99365bb45528898c864fcb1c7780b.zip
llvm-96000f5c2bf99365bb45528898c864fcb1c7780b.tar.gz
llvm-96000f5c2bf99365bb45528898c864fcb1c7780b.tar.bz2
[lldb] Simplify SBCommandInterpreter::SourceInitFileInHomeDirectory
just have it delegate to the new overload.
Diffstat (limited to 'lldb/source/API/SBCommandInterpreter.cpp')
-rw-r--r--lldb/source/API/SBCommandInterpreter.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp
index 073c1a1..4a1c3c6 100644
--- a/lldb/source/API/SBCommandInterpreter.cpp
+++ b/lldb/source/API/SBCommandInterpreter.cpp
@@ -421,16 +421,7 @@ void SBCommandInterpreter::SourceInitFileInHomeDirectory(
SBCommandReturnObject &result) {
LLDB_INSTRUMENT_VA(this, result);
- result.Clear();
- if (IsValid()) {
- TargetSP target_sp(m_opaque_ptr->GetDebugger().GetSelectedTarget());
- std::unique_lock<std::recursive_mutex> lock;
- if (target_sp)
- lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex());
- m_opaque_ptr->SourceInitFileHome(result.ref());
- } else {
- result->AppendError("SBCommandInterpreter is not valid");
- }
+ SourceInitFileInHomeDirectory(result, /*is_repl=*/false);
}
void SBCommandInterpreter::SourceInitFileInHomeDirectory(