diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:10:56 +0000 |
| commit | 044eb2f6afba375a914ac9d8024f8f5142bb912e (patch) | |
| tree | 1475247dc9f9fe5be155ebd4c9069c75aadf8c20 /include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h | |
| parent | eb70dddbd77e120e5d490bd8fbe7ff3f8fa81c6b (diff) | |
Notes
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; }; |
