[PATCH] D139864: [AIX] Demangle the name prefix with '.' in AIX OS for llvm-cxxfilt

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 08:04:02 PDT 2023


hubert.reinterpretcast added a comment.

In D139864#4298210 <https://reviews.llvm.org/D139864#4298210>, @jhenderson wrote:

> So if default c++filt behaviour is to strip and then re-add a leading dot, on all OSes, I'm fine with llvm-cxxfilt changing to support that behaviour, in which case this patch needs to be made platform agnostic (i.e. tests should work on all platforms).

Understood. I agree the patch needs such an update. I would prefer to think of it as processing a leading dot as "normal text" and not part of a symbol name, but the strip+re-add conception of the behaviour leads to the same result.

> One thing to look at though is whether a dot in the middle of a name is considered a delimiter or not in c++filt. We should match their behaviour in this case.

I had observed that `_Z3f.0v` becomes `f.0()` (including on AIX), hence my characterization that GNU c++filt does not consume leading dots as part of the input symbol name.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139864



More information about the llvm-commits mailing list