summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-12-22 21:35:05 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2019-12-22 21:36:03 -0800
commit1562511275fe1f002458194c085216cf9ae36d1f (patch)
tree39e276d5747f75fde7160accbe63109df1ae1c6e /lldb/source/Core
parentb449d19e55888ab9554b04184c6d9716389820fd (diff)
downloadbcm5719-llvm-1562511275fe1f002458194c085216cf9ae36d1f.tar.gz
bcm5719-llvm-1562511275fe1f002458194c085216cf9ae36d1f.zip
[lldb/ScriptInterpreter] Remove can_reload which is always true (NFC)
The `-r` option for `command script import` is there for legacy compatibility, however the can_reload flag is always set to true. This patch removes the flag and any code that relies on it being false.
Diffstat (limited to 'lldb/source/Core')
-rw-r--r--lldb/source/Core/Module.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp
index 5bb6a55457d..031892abdd2 100644
--- a/lldb/source/Core/Module.cpp
+++ b/lldb/source/Core/Module.cpp
@@ -1512,11 +1512,9 @@ bool Module::LoadScriptingResourceInTarget(Target *target, Status &error,
}
StreamString scripting_stream;
scripting_fspec.Dump(scripting_stream.AsRawOstream());
- const bool can_reload = true;
const bool init_lldb_globals = false;
bool did_load = script_interpreter->LoadScriptingModule(
- scripting_stream.GetData(), can_reload, init_lldb_globals,
- error);
+ scripting_stream.GetData(), init_lldb_globals, error);
if (!did_load)
return false;
}
OpenPOWER on IntegriCloud