diff options
author | Enrico Granata <egranata@apple.com> | 2015-09-23 01:39:46 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2015-09-23 01:39:46 +0000 |
commit | c6bf2e2d1d07538c6e6592ca629cf321f0c619a5 (patch) | |
tree | 396043590ab37f4be42a637dd267feceb9412073 /lldb/source/DataFormatters/FormatManager.cpp | |
parent | 8d0e3011d8c85c9ad5e1a9fbe61057b0125057b7 (diff) | |
download | bcm5719-llvm-c6bf2e2d1d07538c6e6592ca629cf321f0c619a5.tar.gz bcm5719-llvm-c6bf2e2d1d07538c6e6592ca629cf321f0c619a5.zip |
Add {TypeSystem|CompilerType}::GetTypeForFormatters()
Different type system may have different notions of attributes of a type that do not matter for data formatters matching purposes
For instance, in the case of clang types, we remove some qualifiers (e.g. "volatile") as it doesn't make much sense to differentiate volatile T from T in the data formatters
This new API allows each type system to generate, if needed, a type that does not have those unwanted attributes that the data formatters can then consume to generate matches
llvm-svn: 248359
Diffstat (limited to 'lldb/source/DataFormatters/FormatManager.cpp')
-rw-r--r-- | lldb/source/DataFormatters/FormatManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/DataFormatters/FormatManager.cpp b/lldb/source/DataFormatters/FormatManager.cpp index 7c241e196d8..6d45a89f8d3 100644 --- a/lldb/source/DataFormatters/FormatManager.cpp +++ b/lldb/source/DataFormatters/FormatManager.cpp @@ -199,7 +199,7 @@ FormatManager::GetPossibleMatches (ValueObject& valobj, bool did_strip_typedef, bool root_level) { - compiler_type = ClangASTContext::RemoveFastQualifiers(compiler_type); + compiler_type = compiler_type.GetTypeForFormatters(); ConstString type_name(compiler_type.GetConstTypeName()); if (valobj.GetBitfieldBitSize() > 0) { |