@@ -38,18 +38,16 @@ struct CreateMethodDecl : public TypeVisitorCallbacks {
38
38
TypeIndex func_type_index,
39
39
clang::FunctionDecl *&function_decl,
40
40
lldb::opaque_compiler_type_t parent_ty,
41
- llvm::StringRef proc_name, ConstString mangled_name,
42
- CompilerType func_ct)
41
+ llvm::StringRef proc_name, CompilerType func_ct)
43
42
: m_index(m_index), m_clang(m_clang), func_type_index(func_type_index),
44
43
function_decl (function_decl), parent_ty(parent_ty),
45
- proc_name(proc_name), mangled_name(mangled_name), func_ct(func_ct) {}
44
+ proc_name(proc_name), func_ct(func_ct) {}
46
45
PdbIndex &m_index;
47
46
TypeSystemClang &m_clang;
48
47
TypeIndex func_type_index;
49
48
clang::FunctionDecl *&function_decl;
50
49
lldb::opaque_compiler_type_t parent_ty;
51
50
llvm::StringRef proc_name;
52
- ConstString mangled_name;
53
51
CompilerType func_ct;
54
52
55
53
llvm::Error visitKnownMember (CVMemberRecord &cvr,
@@ -89,7 +87,8 @@ struct CreateMethodDecl : public TypeVisitorCallbacks {
89
87
bool is_artificial = (options & MethodOptions::CompilerGenerated) ==
90
88
MethodOptions::CompilerGenerated;
91
89
function_decl = m_clang.AddMethodToCXXRecordType (
92
- parent_ty, proc_name, mangled_name, func_ct, /* access=*/ access_type,
90
+ parent_ty, proc_name,
91
+ /* asm_label=*/ {}, func_ct, /* access=*/ access_type,
93
92
/* is_virtual=*/ is_virtual, /* is_static=*/ is_static,
94
93
/* is_inline=*/ false , /* is_explicit=*/ false ,
95
94
/* is_attr_used=*/ false , /* is_artificial=*/ is_artificial);
@@ -893,26 +892,22 @@ PdbAstBuilder::CreateFunctionDecl(PdbCompilandSymId func_id,
893
892
tag_record = CVTagRecord::create (index.tpi ().getType (*eti)).asTag ();
894
893
}
895
894
}
896
-
897
- ConstString mangled_name (
898
- pdb->FindMangledFunctionName (func_id).value_or (llvm::StringRef ()));
899
-
900
895
if (!tag_record.FieldList .isSimple ()) {
901
896
CVType field_list_cvt = index.tpi ().getType (tag_record.FieldList );
902
897
FieldListRecord field_list;
903
898
if (llvm::Error error = TypeDeserializer::deserializeAs<FieldListRecord>(
904
899
field_list_cvt, field_list))
905
900
llvm::consumeError (std::move (error));
906
901
CreateMethodDecl process (index, m_clang, func_ti, function_decl,
907
- parent_opaque_ty, func_name, mangled_name,
908
- func_ct);
902
+ parent_opaque_ty, func_name, func_ct);
909
903
if (llvm::Error err = visitMemberRecordStream (field_list.Data , process))
910
904
llvm::consumeError (std::move (err));
911
905
}
912
906
913
907
if (!function_decl) {
914
908
function_decl = m_clang.AddMethodToCXXRecordType (
915
- parent_opaque_ty, func_name, mangled_name, func_ct,
909
+ parent_opaque_ty, func_name,
910
+ /* asm_label=*/ {}, func_ct,
916
911
/* access=*/ lldb::AccessType::eAccessPublic,
917
912
/* is_virtual=*/ false , /* is_static=*/ false ,
918
913
/* is_inline=*/ false , /* is_explicit=*/ false ,
0 commit comments