[PATCH] D57350: [llvm-cxxfilt] Split input and demangle each word.

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 29 09:04:48 PST 2019


jhenderson added a comment.

In D57350#1375540 <https://reviews.llvm.org/D57350#1375540>, @compnerd wrote:

> This actually breaks the compatibility with the existing tools.  The quoted string is supposed to be interpreted as a *single* entry.  I think that if you want to support something like this, it should be a separate flag for this behaviour.


Which tools are you referring to? This matches GNU c++filt behaviour for some cases at least:

  C:\Work>c++filt "abc _Z3foov def"
  abc _Z3foov def
  
  C:\Work>c++filt
  abc _Z3foov def // stdin
  abc foo() def
  
  C:\Work>nm bar.elf | c++filt
  0000000000000000 t foo()

It looks like the behaviour is different depending on whether this is fed in via stdin or via the command-line.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57350/new/

https://reviews.llvm.org/D57350





More information about the llvm-commits mailing list