diff options
Diffstat (limited to 'include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h')
| -rw-r--r-- | include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h b/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h index e0a779bb8182..a711fb295444 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h +++ b/include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h @@ -29,13 +29,19 @@ public: DWARFDebugFrame(bool IsEH); ~DWARFDebugFrame(); - /// \brief Dump the section data into the given stream. - void dump(raw_ostream &OS) const; + /// Dump the section data into the given stream. + void dump(raw_ostream &OS, Optional<uint64_t> Offset) const; /// \brief Parse the section from raw data. /// data is assumed to be pointing to the beginning of the section. void parse(DataExtractor Data); + /// Return whether the section has any entries. + bool empty() const { return Entries.empty(); } + + /// Return the entry at the given offset or nullptr. + FrameEntry *getEntryAtOffset(uint64_t Offset) const; + private: std::vector<std::unique_ptr<FrameEntry>> Entries; }; |
