1 //===-- DWARFDebugFrame.h - Parsing of .debug_frame -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_LIB_DEBUGINFO_DWARFDEBUGFRAME_H
11 #define LLVM_LIB_DEBUGINFO_DWARFDEBUGFRAME_H
13 #include "llvm/Support/DataExtractor.h"
14 #include "llvm/Support/raw_ostream.h"
22 /// \brief A parsed .debug_frame or .eh_frame section
24 class DWARFDebugFrame {
25 // True if this is parsing an eh_frame section.
28 DWARFDebugFrame(bool IsEH);
31 /// \brief Dump the section data into the given stream.
32 void dump(raw_ostream &OS) const;
34 /// \brief Parse the section from raw data.
35 /// data is assumed to be pointing to the beginning of the section.
36 void parse(DataExtractor Data);
39 std::vector<std::unique_ptr<FrameEntry>> Entries;