Skip to content

Commit 90eaf54

Browse files
committed
[lldb] Preserve original symbol of Mangled function names
1 parent cfd1ee7 commit 90eaf54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,9 @@ Function *DWARFASTParserClang::ParseFunctionFromDWARF(
25092509
// If the mangled name is not present in the DWARF, generate the
25102510
// demangled name using the decl context. We skip if the function is
25112511
// "main" as its name is never mangled.
2512-
func_name.SetValue(ConstructDemangledNameFromDWARF(die));
2512+
func_name.SetDemangledName(ConstructDemangledNameFromDWARF(die));
2513+
// Ensure symbol is preserved (as the mangled name).
2514+
func_name.SetMangledName(ConstString(name));
25132515
} else
25142516
func_name.SetValue(ConstString(name));
25152517

0 commit comments

Comments
 (0)