[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.
This commit is contained in:
Jonas Devlieghere
2019-12-22 21:35:05 -08:00
parent b449d19e55
commit 1562511275
7 changed files with 12 additions and 26 deletions

View File

@@ -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;
}