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_DEBUGINFO_DWARFCOMPILEUNIT_H
11 #define LLVM_DEBUGINFO_DWARFCOMPILEUNIT_H
13 #include "llvm/DebugInfo/DWARF/DWARFUnit.h"
14 #include "llvm/DebugInfo/DWARF/DWARFUnitIndex.h"
18 class DWARFCompileUnit : public DWARFUnit {
20 DWARFCompileUnit(DWARFContext &Context, const DWARFSection &Section,
21 const DWARFDebugAbbrev *DA, const DWARFSection *RS,
22 StringRef SS, StringRef SOS, const DWARFSection *AOS,
23 StringRef LS, bool LE, bool IsDWO,
24 const DWARFUnitSectionBase &UnitSection,
25 const DWARFUnitIndex::Entry *Entry)
26 : DWARFUnit(Context, Section, DA, RS, SS, SOS, AOS, LS, LE, IsDWO,
27 UnitSection, Entry) {}
30 ~DWARFCompileUnit() override;
32 void dump(raw_ostream &OS);
34 static const DWARFSectionKind Section = DW_SECT_INFO;
37 } // end namespace llvm
39 #endif // LLVM_DEBUGINFO_DWARFCOMPILEUNIT_H