Eli Bendersky | 60bdc5b | 2013-02-05 23:30:58 +0000 | [diff] [blame] | 1 | //===-- DWARFDebugFrame.h - Parsing of .debug_frame -------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef LLVM_DEBUGINFO_DWARFDEBUGFRAME_H |
| 11 | #define LLVM_DEBUGINFO_DWARFDEBUGFRAME_H |
| 12 | |
| 13 | #include "llvm/Support/DataExtractor.h" |
| 14 | #include "llvm/Support/raw_ostream.h" |
| 15 | #include <vector> |
| 16 | |
| 17 | |
| 18 | namespace llvm { |
| 19 | |
| 20 | class FrameEntry; |
| 21 | |
| 22 | |
| 23 | /// \brief A parsed .debug_frame section |
| 24 | /// |
| 25 | class DWARFDebugFrame { |
| 26 | public: |
| 27 | DWARFDebugFrame(); |
| 28 | ~DWARFDebugFrame(); |
| 29 | |
| 30 | /// \brief Dump the section data into the given stream. |
| 31 | void dump(raw_ostream &OS) const; |
| 32 | |
| 33 | /// \brief Parse the section from raw data. |
| 34 | /// data is assumed to be pointing to the beginning of the section. |
| 35 | void parse(DataExtractor Data); |
| 36 | |
| 37 | private: |
| 38 | typedef std::vector<FrameEntry *> EntryVector; |
| 39 | EntryVector Entries; |
| 40 | }; |
| 41 | |
| 42 | |
| 43 | } // namespace llvm |
| 44 | |
Stephen Hines | 36b5688 | 2014-04-23 16:57:46 -0700 | [diff] [blame^] | 45 | #endif |