[Demangle] Add a few more options to the microsoft demangler
commit720dd863c7d2d3778ee9c8487dd51d450439adcf
authorMartin Storsjo <martin@martin.st>
Tue, 15 Oct 2019 08:29:56 +0000 (15 08:29 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 15 Oct 2019 08:29:56 +0000 (15 08:29 +0000)
treec49aa8d0596f49f1c598052dcfc0d7a4598a6b98
parent7fc27db442426561348209b1e7301407ef38770d
[Demangle] Add a few more options to the microsoft demangler

This corresponds to commonly used options to UnDecorateSymbolName
within llvm.

Add them as hidden options in llvm-undname. MS undname.exe takes
numeric flags, corresponding to the UNDNAME_* constants, but instead
of hardcoding in mappings for those numbers, just add textual
options instead, as it the use of them here is primarily intended
for testing.

Differential Revision: https://reviews.llvm.org/D68917

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374865 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Demangle/Demangle.h
include/llvm/Demangle/MicrosoftDemangleNodes.h
lib/Demangle/MicrosoftDemangle.cpp
lib/Demangle/MicrosoftDemangleNodes.cpp
test/Demangle/ms-options.test [new file with mode: 0644]
tools/llvm-undname/llvm-undname.cpp