[lldb] add missed handling for new BTFTagAttributed type

Commit 3251ba2d0f ("[Attr] Fix a btf_type_tag AST generation")
added a new type BTFTagAttributedType to the clang AST type
system. There are a few places in lldb needed to handle this type
similar to Attributed type to avoid compilation warning/error
when 'switch' is used to enumerate all types.
This commit is contained in:
Yonghong Song 2022-03-16 10:59:35 -07:00
parent 3b4c59c156
commit 212f714ff7
1 changed files with 3 additions and 0 deletions

View File

@ -4172,6 +4172,7 @@ TypeSystemClang::GetTypeClass(lldb::opaque_compiler_type_t type) {
break;
case clang::Type::Attributed:
case clang::Type::BTFTagAttributed:
break;
case clang::Type::TemplateTypeParm:
break;
@ -5097,6 +5098,7 @@ lldb::Encoding TypeSystemClang::GetEncoding(lldb::opaque_compiler_type_t type,
case clang::Type::DependentSizedExtVector:
case clang::Type::UnresolvedUsing:
case clang::Type::Attributed:
case clang::Type::BTFTagAttributed:
case clang::Type::TemplateTypeParm:
case clang::Type::SubstTemplateTypeParm:
case clang::Type::SubstTemplateTypeParmPack:
@ -5250,6 +5252,7 @@ lldb::Format TypeSystemClang::GetFormat(lldb::opaque_compiler_type_t type) {
case clang::Type::DependentSizedExtVector:
case clang::Type::UnresolvedUsing:
case clang::Type::Attributed:
case clang::Type::BTFTagAttributed:
case clang::Type::TemplateTypeParm:
case clang::Type::SubstTemplateTypeParm:
case clang::Type::SubstTemplateTypeParmPack: