[Lldb-commits] [clang] [lldb] [Clang][LLDB] Refactor trap reason demangling out of LLDB and into Clang (PR #165996)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Sat Nov 1 09:40:08 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) {
----------------
Michael137 wrote:

Can we rename this from demangle to something like "decode"? Dont feel strongly about it but "demangling" I associate with language mangling schemes. But if it's a common use of the word "demangle" throughout clang, I dont mind either

https://github.com/llvm/llvm-project/pull/165996


More information about the lldb-commits mailing list