mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-04 20:20:54 +00:00
[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:
parent
3b4c59c156
commit
212f714ff7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user