mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 12:19:23 +08:00
Made the REPL choose a default language if only one REPL can be chosen.
This requires REPLs to enumerate the languages they support. llvm-svn: 250913
This commit is contained in:
@@ -1805,11 +1805,6 @@ Debugger::RunREPL (LanguageType language, const char *repl_options)
|
||||
{
|
||||
Error err;
|
||||
FileSpec repl_executable;
|
||||
if (language == eLanguageTypeUnknown)
|
||||
{
|
||||
err.SetErrorString ("must specify a language for a REPL"); // TODO make it possible to specify a default language
|
||||
return err;
|
||||
}
|
||||
|
||||
Target *const target = nullptr; // passing in an empty target means the REPL must create one
|
||||
|
||||
|
||||
Reference in New Issue
Block a user