[PATCH] D131330: [llvm][Demangle] Add getter for FunctionEncoding::Attrs

Michael Buch via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 6 10:49:31 PDT 2022


Michael137 created this revision.
Michael137 added a reviewer: aprantl.
Herald added a project: All.
Michael137 published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

In LLDB we use the Itanium mangle tree API to compare
function encodings of mangled names when selecting a
candidate symbol for expression evaluation. We now
also include ABI tags in this comparison. This patch
makes this possible by exposing the Attrs in the mangle
tree API.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131330

Files:
  llvm/include/llvm/Demangle/ItaniumDemangle.h


Index: llvm/include/llvm/Demangle/ItaniumDemangle.h
===================================================================
--- llvm/include/llvm/Demangle/ItaniumDemangle.h
+++ llvm/include/llvm/Demangle/ItaniumDemangle.h
@@ -879,6 +879,7 @@
   FunctionRefQual getRefQual() const { return RefQual; }
   NodeArray getParams() const { return Params; }
   const Node *getReturnType() const { return Ret; }
+  const Node *getAttrs() const { return Attrs; }
 
   bool hasRHSComponentSlow(OutputBuffer &) const override { return true; }
   bool hasFunctionSlow(OutputBuffer &) const override { return true; }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131330.450555.patch
Type: text/x-patch
Size: 599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220806/740c421d/attachment.bin>


More information about the llvm-commits mailing list