diff options
| author | Enrico Granata <egranata@apple.com> | 2015-08-13 00:24:24 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2015-08-13 00:24:24 +0000 |
| commit | 53f2a4aff369f4bb9be826d36732a5db7e0b0607 (patch) | |
| tree | e7f84250906ca115007fcde806e57af7cc8b2bf3 /lldb/source/DataFormatters | |
| parent | d9c6070c98b798023b373ea26ff56f50ebe4219f (diff) | |
| download | bcm5719-llvm-53f2a4aff369f4bb9be826d36732a5db7e0b0607.tar.gz bcm5719-llvm-53f2a4aff369f4bb9be826d36732a5db7e0b0607.zip | |
Convert GetNumTemplateArguments() and GetTemplateArgument() to be instance functions on the CompilerType and the TypeSystem
llvm-svn: 244846
Diffstat (limited to 'lldb/source/DataFormatters')
| -rw-r--r-- | lldb/source/DataFormatters/LibCxxInitializerList.cpp | 2 | ||||
| -rw-r--r-- | lldb/source/DataFormatters/LibCxxList.cpp | 4 | ||||
| -rw-r--r-- | lldb/source/DataFormatters/LibStdcpp.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/DataFormatters/LibCxxInitializerList.cpp b/lldb/source/DataFormatters/LibCxxInitializerList.cpp index 9faa5865311..ae1f31d0ee5 100644 --- a/lldb/source/DataFormatters/LibCxxInitializerList.cpp +++ b/lldb/source/DataFormatters/LibCxxInitializerList.cpp @@ -101,7 +101,7 @@ lldb_private::formatters::LibcxxInitializerListSyntheticFrontEnd::Update() m_num_elements = 0; m_children.clear(); lldb::TemplateArgumentKind kind; - m_element_type = ClangASTContext::GetTemplateArgument(m_backend.GetClangType(), 0, kind); + m_element_type = m_backend.GetClangType().GetTemplateArgument(0, kind); if (kind != lldb::eTemplateArgumentKindType || false == m_element_type.IsValid()) return false; diff --git a/lldb/source/DataFormatters/LibCxxList.cpp b/lldb/source/DataFormatters/LibCxxList.cpp index 0771f6e6f3c..c20e27d5977 100644 --- a/lldb/source/DataFormatters/LibCxxList.cpp +++ b/lldb/source/DataFormatters/LibCxxList.cpp @@ -336,10 +336,10 @@ lldb_private::formatters::LibcxxStdListSyntheticFrontEnd::Update() if (list_type.IsReferenceType()) list_type = list_type.GetNonReferenceType(); - if (ClangASTContext::GetNumTemplateArguments(list_type) == 0) + if (list_type.GetNumTemplateArguments() == 0) return false; lldb::TemplateArgumentKind kind; - m_element_type = ClangASTContext::GetTemplateArgument(list_type, 0, kind); + m_element_type = list_type.GetTemplateArgument(0, kind); m_head = impl_sp->GetChildMemberWithName(ConstString("__next_"), true).get(); m_tail = impl_sp->GetChildMemberWithName(ConstString("__prev_"), true).get(); return false; diff --git a/lldb/source/DataFormatters/LibStdcpp.cpp b/lldb/source/DataFormatters/LibStdcpp.cpp index 6dfebd24546..0f964739ead 100644 --- a/lldb/source/DataFormatters/LibStdcpp.cpp +++ b/lldb/source/DataFormatters/LibStdcpp.cpp @@ -79,10 +79,10 @@ lldb_private::formatters::LibstdcppMapIteratorSyntheticFrontEnd::Update() m_pair_address += (is_64bit ? 32 : 16); CompilerType my_type(valobj_sp->GetClangType()); - if (ClangASTContext::GetNumTemplateArguments(my_type) >= 1) + if (my_type.GetNumTemplateArguments() >= 1) { TemplateArgumentKind kind; - CompilerType pair_type = ClangASTContext::GetTemplateArgument(my_type, 0, kind); + CompilerType pair_type = my_type.GetTemplateArgument(0, kind); if (kind != eTemplateArgumentKindType && kind != eTemplateArgumentKindTemplate && kind != eTemplateArgumentKindTemplateExpansion) return false; m_pair_type = pair_type; |

