[llvm-cxxfilt] Correctly demangle COFF import thunk
authorSteven Wu <stevenwu@apple.com>
Mon, 16 Dec 2019 17:48:00 +0000 (09:48 -0800)
committerSteven Wu <stevenwu@apple.com>
Mon, 16 Dec 2019 17:50:04 +0000 (09:50 -0800)
commit2597135571ecae435e10e9136d1eb0435beca8ee
tree10ba69d0ad265b10214a67727c62227fa7c876b5
parent878ab6df033d44430939c02075ee00800995dc3b
[llvm-cxxfilt] Correctly demangle COFF import thunk

Summary:
llvm-cxxfilt wasn't correctly demangle COFF import thunk in those two
cases before:
* demangle in split mode (multiple words from commandline)
* the import thunk prefix was added no matter the later part of the
string can be demangled or not
Now llvm-cxxfilt should handle both case correctly.

Reviewers: compnerd, erik.pilkington, jhenderson

Reviewed By: jhenderson

Subscribers: jkorous, dexonsmith, ributzka, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D71425
llvm/test/tools/llvm-cxxfilt/coff-import.test
llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp