[PATCH] D141475: [DebugInfo] Add CIE::getAugmentationData() and FDE::getCIEPointer()

Benjamin Maxwell via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 11 02:44:43 PST 2023


benmxwl-arm created this revision.
Herald added a project: All.
benmxwl-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Public getters are provided for other similar members of both the CIE
and FDE, these fields are also displayed by the llvm-drawfdump tool,
so it seems like not exposing them was likely an oversight.

These are needed for tools based on LLVM that need access to all the
parsed DWARF data.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141475

Files:
  llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h


Index: llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
===================================================================
--- llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
+++ llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
@@ -599,6 +599,8 @@
     return PersonalityEnc;
   }
 
+  StringRef getAugmentationData() const { return AugmentationData; }
+
   uint32_t getFDEPointerEncoding() const { return FDEPointerEncoding; }
 
   uint32_t getLSDAPointerEncoding() const { return LSDAPointerEncoding; }
@@ -638,6 +640,7 @@
   ~FDE() override = default;
 
   const CIE *getLinkedCIE() const { return LinkedCIE; }
+  uint64_t getCIEPointer() const { return CIEPointer; }
   uint64_t getInitialLocation() const { return InitialLocation; }
   uint64_t getAddressRange() const { return AddressRange; }
   std::optional<uint64_t> getLSDAAddress() const { return LSDAAddress; }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141475.488126.patch
Type: text/x-patch
Size: 884 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230111/57f1b834/attachment-0001.bin>


More information about the llvm-commits mailing list