[PATCH] D110577: [llvm-cxxfilt] Enable support for D programming language demangling
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 30 13:28:31 PDT 2021
dblaikie added inline comments.
================
Comment at: llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp:79-99
if (Types ||
((DecoratedLength >= 2 && strncmp(DecoratedStr, "_Z", 2) == 0) ||
(DecoratedLength >= 4 && strncmp(DecoratedStr, "___Z", 4) == 0)))
Undecorated = itaniumDemangle(DecoratedStr, nullptr, nullptr, &Status);
if (!Undecorated &&
(DecoratedLength > 6 && strncmp(DecoratedStr, "__imp_", 6) == 0)) {
----------------
dblaikie wrote:
> Perhaps this code could be refactored to be shared with llvm-symbolizer? (eg: the code being updated in D110664 here: `llvm/lib/DebugInfo/Symbolize/Symbolize.cpp`)
Maybe the refactoring would be better done in D110664 and then that could be the basis for this patch to make one change that'd apply to both llvm-cxxfilt and llvm-symbolizer/symbolizing library.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110577/new/
https://reviews.llvm.org/D110577
More information about the llvm-commits
mailing list