summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/ClangASTContext.cpp
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/Symbol/ClangASTContext.cpp
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/Symbol/ClangASTContext.cpp')
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp20
1 files changed, 10 insertions, 10 deletions
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