forked from OSchip/llvm-project
[FormatManager] Provide a single entrypoint for GetCandidateLanguages().
This commit is contained in:
parent
1646bb8664
commit
295db41ce2
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue