From e37d605e7d3ff1b684962a006000dec601b7a1f6 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Tue, 13 Sep 2011 00:29:56 +0000 Subject: SBSourceManager now gets the real source manager either from the Debugger or Target. Also, move the SourceManager file cache into the debugger so it can be shared amongst the targets. llvm-svn: 139564 --- lldb/source/API/SBDebugger.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lldb/source/API/SBDebugger.cpp') diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index be6873be414..d0687261e83 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -357,12 +357,11 @@ SBDebugger::HandleProcessEvent (const SBProcess &process, const SBEvent &event, } } -SBSourceManager & +SBSourceManager SBDebugger::GetSourceManager () { - static SourceManager g_lldb_source_manager(NULL); - static SBSourceManager g_sb_source_manager (&g_lldb_source_manager); - return g_sb_source_manager; + SBSourceManager sb_source_manager (*this); + return sb_source_manager; } -- cgit v1.2.3