[FormatManager] Provide a single entrypoint for GetCandidateLanguages().

This commit is contained in:
Davide Italiano 2019-12-09 14:48:36 -08:00
parent 1646bb8664
commit 295db41ce2
1 changed files with 1 additions and 5 deletions

View File

@ -581,11 +581,6 @@ ConstString FormatManager::GetTypeForCache(ValueObject &valobj,
std::vector<lldb::LanguageType>
FormatManager::GetCandidateLanguages(ValueObject &valobj) {
lldb::LanguageType lang_type = valobj.GetObjectRuntimeLanguage();
return GetCandidateLanguages(lang_type);
}
std::vector<lldb::LanguageType>
FormatManager::GetCandidateLanguages(lldb::LanguageType lang_type) {
switch (lang_type) {
case lldb::eLanguageTypeC:
case lldb::eLanguageTypeC89:
@ -599,6 +594,7 @@ FormatManager::GetCandidateLanguages(lldb::LanguageType lang_type) {
default:
return {lang_type};
}
llvm_unreachable("Fully covered switch");
}
LanguageCategory *