================
@@ -501,7 +501,13 @@ lldb::FunctionSP
SymbolFileNativePDB::CreateFunction(PdbCompilandSymId func_id,
return nullptr;
PdbTypeSymId sig_id(proc.FunctionType, false);
- Mangled mangled(proc.Name);
+
+ std::optional<llvm::StringRef> mangled_opt =
+ FindMangledSymbol(SegmentOffset(proc.Segment, proc.CodeOffset));
+ if (mangled_opt)
+ mangled_opt = StripMangledFunctionName(*mangled_opt, proc.FunctionType);
----------------
Nerixyz wrote:
Sure, now we have to pass the function type to `FindMangledSymbol`. That's
fine, since the function is only used for functions right now.
https://github.com/llvm/llvm-project/pull/161678
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits