1 //===-- DWARFCompileUnit.h --------------------------------------*- 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_DWARFCOMPILEUNIT_H
11 #define LLVM_LIB_DEBUGINFO_DWARFCOMPILEUNIT_H
13 #include "llvm/DebugInfo/DWARF/DWARFUnit.h"
17 class DWARFCompileUnit : public DWARFUnit {
19 DWARFCompileUnit(DWARFContext &Context, const DWARFSection &Section,
20 const DWARFDebugAbbrev *DA, StringRef RS, StringRef SS,
21 StringRef SOS, StringRef AOS, StringRef LS, bool LE,
22 const DWARFUnitSectionBase &UnitSection,
23 const DWARFUnitIndex::Entry *Entry)
24 : DWARFUnit(Context, Section, DA, RS, SS, SOS, AOS, LS, LE, UnitSection,
26 void dump(raw_ostream &OS);
27 static const DWARFSectionKind Section = DW_SECT_INFO;
29 ~DWARFCompileUnit() override;