summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-12-29 20:10:29 +0100
committerRaphael Isemann <teemperor@gmail.com>2019-12-29 20:27:05 +0100
commit0007f9da7c0c780e2466759c1e53b1109a54e400 (patch)
treeb7ccd53a760e40255e47cd7ece1d78b4da60de02 /lldb/source
parentc926d96fcab1e965ada6e045f762a73928d58c82 (diff)
downloadbcm5719-llvm-0007f9da7c0c780e2466759c1e53b1109a54e400.tar.gz
bcm5719-llvm-0007f9da7c0c780e2466759c1e53b1109a54e400.zip
[lldb][NFC] Delete static versions of ClangASTContext::CreateFunctionType
We can always call the member function version of this function.
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp4
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp20
2 files changed, 12 insertions, 12 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
index ec1f3478df2..6634824be01 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
@@ -1955,8 +1955,8 @@ void ClangExpressionDeclMap::AddThisType(NameSearchContext &context,
m_clang_ast_context->GetBasicType(eBasicTypeVoid);
CompilerType void_ptr_clang_type = void_clang_type.GetPointerType();
- CompilerType method_type = ClangASTContext::CreateFunctionType(
- m_ast_context, void_clang_type, &void_ptr_clang_type, 1, false, 0);
+ CompilerType method_type = m_clang_ast_context->CreateFunctionType(
+ void_clang_type, &void_ptr_clang_type, 1, false, 0);
const bool is_virtual = false;
const bool is_static = false;
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index 5c78e9ff0c9..0664db37a04 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -1917,13 +1917,11 @@ FunctionDecl *ClangASTContext::CreateFunctionDeclaration(
return func_decl;
}
-CompilerType ClangASTContext::CreateFunctionType(
- ASTContext *ast, const CompilerType &result_type, const CompilerType *args,
- unsigned num_args, bool is_variadic, unsigned type_quals,
- clang::CallingConv cc) {
- if (ast == nullptr)
- return CompilerType(); // invalid AST
-
+CompilerType
+ClangASTContext::CreateFunctionType(const CompilerType &result_type,
+ const CompilerType *args, unsigned num_args,
+ bool is_variadic, unsigned type_quals,
+ clang::CallingConv cc) {
if (!result_type || !ClangUtil::IsClangType(result_type))
return CompilerType(); // invalid return type
@@ -1954,9 +1952,11 @@ CompilerType ClangASTContext::CreateFunctionType(
proto_info.TypeQuals = clang::Qualifiers::fromFastMask(type_quals);
proto_info.RefQualifier = RQ_None;
- return CompilerType(ClangASTContext::GetASTContext(ast),
- ast->getFunctionType(ClangUtil::GetQualType(result_type),
- qual_type_args, proto_info).getAsOpaquePtr());
+ return CompilerType(this,
+ getASTContext()
+ .getFunctionType(ClangUtil::GetQualType(result_type),
+ qual_type_args, proto_info)
+ .getAsOpaquePtr());
}
ParmVarDecl *ClangASTContext::CreateParameterDeclaration(
OpenPOWER on IntegriCloud