Issue 239769
Summary [lldb] Add rich mangling info for MSVC names
Labels lldb, platform:windows
Assignees
Reporter Nerixyz
    Currently, MSVC mangled names only use the C++ method name parser. But for mangled names, we should use the `llvm::ms_demangle` nodes. This is a bit different from Itanium, but I think it's doable. Especially now that the demangling lives in the language plugin.

Specifically, the following would need to be changed:
- [`CPlusPlusLanguage::DemangleSymbol`](https://github.com/llvm/llvm-project/blob/9b3ca6eae97df96339771f2a5592518f79f2ee23/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp#L188-L208): handle `options.want_info` and provide a `DemangleNameInfo`
- [`CPlusPlusLanguage::CreateMangledNameParser`](https://github.com/llvm/llvm-project/blob/9b3ca6eae97df96339771f2a5592518f79f2ee23/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp#L281-L287): return a different one for MSVC
	- I think `CPlusPlusMangledNameParser` should be changed to `ItaniumMangledNameParser` which would essentially inline the relevant functionality from `RichManglingContext`.
	- `RichManglingContext` can then be removed (C++ is the last user)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to