]> granicus.if.org Git - llvm/commit
[Demangle] Add a few more options to the microsoft demangler
authorMartin Storsjo <martin@martin.st>
Tue, 15 Oct 2019 08:29:56 +0000 (08:29 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 15 Oct 2019 08:29:56 +0000 (08:29 +0000)
commit551211dc5660682d77370d9ae0e203e71f29a358
treec49aa8d0596f49f1c598052dcfc0d7a4598a6b98
parentaadc688c8ea8a869f7ef4c260208c9d532d26dc3
[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