Skip to content

Commit

Permalink
[lldb] add missed handling for new BTFTagAttributed type
Browse files Browse the repository at this point in the history
Commit 3251ba2 ("[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.
  • Loading branch information
yonghong-song committed Mar 16, 2022
1 parent 3b4c59c commit 212f714
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
Expand Up @@ -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;
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 212f714

Please sign in to comment.