[Lldb-commits] [clang] [lldb] [Clang][LLDB] Refactor trap reason demangling out of LLDB and into Clang (PR #165996)
Dan Liew via lldb-commits
lldb-commits at lists.llvm.org
Sat Nov 1 10:47:44 PDT 2025
================
@@ -378,3 +379,31 @@ clang::CreateLLVMCodeGen(DiagnosticsEngine &Diags, llvm::StringRef ModuleName,
HeaderSearchOpts, PreprocessorOpts, CGO, C,
CoverageInfo);
}
+
+namespace clang {
+namespace CodeGen {
+std::optional<std::pair<StringRef, StringRef>>
+DemangleTrapReasonInDebugInfo(StringRef FuncName) {
----------------
delcypher wrote:
I called this "demangle" because the format we use in debug info is basically a mangling scheme internal to Clang. It's true this is not a mangling scheme like the Itanium ABI but it still seems like a kind of mangling.
I'm really not an expert on the terminology used inside Clang though so I'm happy to defer to the preferred terminology used in Clang if there is one.
https://github.com/llvm/llvm-project/pull/165996
More information about the lldb-commits
mailing list