[Lldb-commits] [lldb] [lldb][Expression] Encode Module and DIE UIDs into function AsmLabels (PR #148877)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 30 02:17:02 PDT 2025
================
@@ -259,7 +259,9 @@ class InterpreterStackFrame {
break;
case Value::FunctionVal:
if (const Function *constant_func = dyn_cast<Function>(constant)) {
- lldb_private::ConstString name(constant_func->getName());
+ lldb_private::ConstString name(
+ llvm::GlobalValue::dropLLVMManglingEscape(
+ constant_func->getName()));
----------------
Michael137 wrote:
Had to drop the `\01` mangling prefix here since we're not creating literal `AsmLabel`s anymore. Fixed a couple of test failures where we ran expressions like `expression func` (to print the function pointer). We would try to find the symbol here (including the mangling prefix) and fail.
https://github.com/llvm/llvm-project/pull/148877
More information about the lldb-commits
mailing list