Convert GetNumTemplateArguments() and GetTemplateArgument() to be instance functions on the CompilerType and the TypeSystem
llvm-svn: 244846
diff --git a/lldb/source/DataFormatters/LibStdcpp.cpp b/lldb/source/DataFormatters/LibStdcpp.cpp
index 6dfebd2..0f96473 100644
--- a/lldb/source/DataFormatters/LibStdcpp.cpp
+++ b/lldb/source/DataFormatters/LibStdcpp.cpp
@@ -79,10 +79,10 @@
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;