Improve DWARFDebugFrame::parse to also handle __eh_frame.
[oota-llvm.git] / include / llvm / DebugInfo / DWARF / DWARFDebugFrame.h
index be925cbe7519540fb200fb18336eebecd98af78f..cd76c909ddaef873bfee6fb10704f07f1bd83f66 100644 (file)
@@ -19,11 +19,13 @@ namespace llvm {
 
 class FrameEntry;
 
-/// \brief A parsed .debug_frame section
+/// \brief A parsed .debug_frame or .eh_frame section
 ///
 class DWARFDebugFrame {
+  // True if this is parsing an eh_frame section.
+  bool IsEH;
 public:
-  DWARFDebugFrame();
+  DWARFDebugFrame(bool IsEH);
   ~DWARFDebugFrame();
 
   /// \brief Dump the section data into the given stream.