[Lldb-commits] [lldb] r107118 - /lldb/trunk/source/API/SBTarget.cpp

Greg Clayton gclayton at apple.com
Mon Jun 28 18:42:03 PDT 2010


Author: gclayton
Date: Mon Jun 28 20:42:03 2010
New Revision: 107118

URL: http://llvm.org/viewvc/llvm-project?rev=107118&view=rev
Log:
A little code cleanup to not create an script bridging object just to feed
the private object back to another internal function.


Modified:
    lldb/trunk/source/API/SBTarget.cpp

Modified: lldb/trunk/source/API/SBTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBTarget.cpp?rev=107118&r1=107117&r2=107118&view=diff
==============================================================================
--- lldb/trunk/source/API/SBTarget.cpp (original)
+++ lldb/trunk/source/API/SBTarget.cpp Mon Jun 28 20:42:03 2010
@@ -110,11 +110,8 @@
     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;
 }
 





More information about the lldb-commits mailing list