summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2015-10-21 17:43:18 +0000
committerSean Callanan <scallanan@apple.com>2015-10-21 17:43:18 +0000
commitbea731292fe03a8c88822fd23204d11da985c52b (patch)
treed15f96ee36185c14837e6eea3f032af42aa6634e /lldb/source/Core/Debugger.cpp
parent45d29670ae971bb26e51e1fecf30c9301f8011b3 (diff)
downloadbcm5719-llvm-bea731292fe03a8c88822fd23204d11da985c52b.tar.gz
bcm5719-llvm-bea731292fe03a8c88822fd23204d11da985c52b.zip
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
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 8619b50b2a3..494b762e872 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -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
OpenPOWER on IntegriCloud