[llvm] cd8cac4 - [DebugInfo] Add CIE::getAugmentationData() and FDE::getCIEPointer()

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 16 07:46:36 PST 2023


Author: Benjamin Maxwell
Date: 2023-01-16T15:38:14Z
New Revision: cd8cac438d0f175aae88a9f412cb69317be7ffc6

URL: https://github.com/llvm/llvm-project/commit/cd8cac438d0f175aae88a9f412cb69317be7ffc6
DIFF: https://github.com/llvm/llvm-project/commit/cd8cac438d0f175aae88a9f412cb69317be7ffc6.diff

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

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.

Differential Revision: https://reviews.llvm.org/D141475

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
index 8e1e61910696f..93c2c9110d390 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
@@ -599,6 +599,8 @@ class CIE : public FrameEntry {
     return PersonalityEnc;
   }
 
+  StringRef getAugmentationData() const { return AugmentationData; }
+
   uint32_t getFDEPointerEncoding() const { return FDEPointerEncoding; }
 
   uint32_t getLSDAPointerEncoding() const { return LSDAPointerEncoding; }
@@ -638,6 +640,7 @@ class FDE : public FrameEntry {
   ~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; }


        


More information about the llvm-commits mailing list