]> granicus.if.org Git - llvm/commit
llvm-cxxfilt: filter out invalid manglings
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 19 Jan 2017 02:58:46 +0000 (02:58 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 19 Jan 2017 02:58:46 +0000 (02:58 +0000)
commit08b49042cb0a37a1f28295fbf1595da70f59b56e
treefbfd5c8c2b59a88fe618e0588df05c209fa05966
parent2a42c3b9a18c5b8ec125da3293b068971cbdedca
llvm-cxxfilt: filter out invalid manglings

c++filt does not attempt to demangle symbols which do not match its
expected format.  This means that the symbol must start with _Z or ___Z
(block invocation function extension).  Any other symbols are returned
as is.  Note that this is different from the behaviour of __cxa_demangle
which will demangle fragments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292467 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-cxxfilt/invalid.test [new file with mode: 0644]
tools/llvm-cxxfilt/llvm-cxxfilt.cpp