From f6b7bcc64a6a3f4008839777f71d2f132f74ec85 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 4 Nov 2021 15:23:08 +0100 Subject: [PATCH] [lldb][NFC] StringRef-ify name param in CreateClassTemplateDecl --- lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp | 2 +- lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp index e9c45f1..077104b 100644 --- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp +++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp @@ -1543,7 +1543,7 @@ static bool ClassTemplateAllowsToInstantiationArgs( ClassTemplateDecl *TypeSystemClang::CreateClassTemplateDecl( DeclContext *decl_ctx, OptionalClangModuleID owning_module, - lldb::AccessType access_type, const char *class_name, int kind, + lldb::AccessType access_type, llvm::StringRef class_name, int kind, const TemplateParameterInfos &template_param_infos) { ASTContext &ast = getASTContext(); diff --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h index e450b56..f3a0739 100644 --- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h +++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h @@ -343,11 +343,10 @@ public: clang::FunctionDecl *func_decl, clang::FunctionTemplateDecl *Template, const TemplateParameterInfos &infos); - clang::ClassTemplateDecl * - CreateClassTemplateDecl(clang::DeclContext *decl_ctx, - OptionalClangModuleID owning_module, - lldb::AccessType access_type, const char *class_name, - int kind, const TemplateParameterInfos &infos); + clang::ClassTemplateDecl *CreateClassTemplateDecl( + clang::DeclContext *decl_ctx, OptionalClangModuleID owning_module, + lldb::AccessType access_type, llvm::StringRef class_name, int kind, + const TemplateParameterInfos &infos); clang::TemplateTemplateParmDecl * CreateTemplateTemplateParmDecl(const char *template_name); -- 2.7.4