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:
Sean Callanan
2015-10-21 17:43:18 +00:00
parent 45d29670ae
commit bea731292f
7 changed files with 40 additions and 8 deletions

View File

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