mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
A little code cleanup to not create an script bridging object just to feed
the private object back to another internal function. llvm-svn: 107118
This commit is contained in:
@@ -110,11 +110,8 @@ SBTarget::CreateProcess ()
|
||||
SBProcess sb_process;
|
||||
|
||||
if (m_opaque_sp)
|
||||
{
|
||||
SBListener sb_listener (m_opaque_sp->GetDebugger().GetListener());
|
||||
if (sb_listener.IsValid())
|
||||
sb_process.SetProcess (m_opaque_sp->CreateProcess (*sb_listener));
|
||||
}
|
||||
sb_process.SetProcess (m_opaque_sp->CreateProcess (m_opaque_sp->GetDebugger().GetListener()));
|
||||
|
||||
return sb_process;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user