mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 01:15:50 +08:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user