From 994740fb1ac376ef19b972d4390b7a3db57574d4 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 18 Aug 2014 21:08:44 +0000 Subject: Don't search for module resources at all if the setting is set to "false". llvm-svn: 215936 --- lldb/source/Core/ModuleList.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lldb/source/Core/ModuleList.cpp') diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp index 13a20ed531b..156f3cf9d0a 100644 --- a/lldb/source/Core/ModuleList.cpp +++ b/lldb/source/Core/ModuleList.cpp @@ -1133,9 +1133,10 @@ ModuleList::LoadScriptingResourcesInTarget (Target *target, module->GetFileSpec().GetFileNameStrippingExtension().GetCString(), error.AsCString()); errors.push_back(error); + + if (!continue_on_error) + return false; } - if (!continue_on_error) - return false; } } } -- cgit v1.2.3