[Lldb-commits] [lldb] 295db41 - [FormatManager] Provide a single entrypoint for GetCandidateLanguages().
Davide Italiano via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 9 14:49:15 PST 2019
Author: Davide Italiano
Date: 2019-12-09T14:49:08-08:00
New Revision: 295db41ce230d9b0f1e0d24829abf0fb772b31ff
URL: https://github.com/llvm/llvm-project/commit/295db41ce230d9b0f1e0d24829abf0fb772b31ff
DIFF: https://github.com/llvm/llvm-project/commit/295db41ce230d9b0f1e0d24829abf0fb772b31ff.diff
LOG: [FormatManager] Provide a single entrypoint for GetCandidateLanguages().
Added:
Modified:
lldb/source/DataFormatters/FormatManager.cpp
Removed:
################################################################################
diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp
index 1eac372d79ec..33aa2dc7a3a1 100644
--- a/lldb/source/DataFormatters/FormatManager.cpp
+++ b/lldb/source/DataFormatters/FormatManager.cpp
@@ -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 *
More information about the lldb-commits
mailing list