From c8bcda2b56db0789acb9b557579b87c3035c833f Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 19 Jan 2017 02:58:46 +0000 Subject: 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. llvm-svn: 292467 --- llvm/test/tools/llvm-cxxfilt/invalid.test | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 llvm/test/tools/llvm-cxxfilt/invalid.test (limited to 'llvm/test') diff --git a/llvm/test/tools/llvm-cxxfilt/invalid.test b/llvm/test/tools/llvm-cxxfilt/invalid.test new file mode 100644 index 00000000000..10f3b2e8132 --- /dev/null +++ b/llvm/test/tools/llvm-cxxfilt/invalid.test @@ -0,0 +1,6 @@ +RUN: llvm-cxxfilt _Z1fi __Z1fi f ___ZSt1ff_block_invoke | FileCheck %s + +CHECK: f(int) +CHECK-NEXT: __Z1fi +CHECK-NEXT: f +CHECK-NEXT: invocation function for block in std::f(float) -- cgit v1.2.3