Does LLVM have a tool for demangling Microsoft C++ mangling?

647 views Asked by At

I use LLVM on windows and I wonder if there is a command line tool to demangle MSVC C++ mangling. I am talking about command line tool like llvm-cxxfilt.

I see some commits in LLVM, but not sure if those are exposed as some tool or it is just C++ API.

I tried looking for llvm-undname mentioned in those commits in my LLVM install folder, but found nothing.

2

There are 2 answers

0
Eljay On BEST ANSWER

Visual Studio comes with a command line tool called undname.exe which will undecorate (demangle) the name.

q.v. https://learn.microsoft.com/en-us/cpp/build/reference/decorated-names?view=msvc-160

0
JDługosz On

Google shows me: https://reviews.llvm.org/D49552
as well as other useful links.

Add a Microsoft Demangler library and utility.

So this feature was added in July of 2018 to the LLVM project.