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 DWARFUnitHeader &Header, const DWARFDebugAbbrev *DA,
22 const DWARFSection *RS, const DWARFSection *LocSection,
23 StringRef SS, const DWARFSection &SOS,
24 const DWARFSection *AOS, const DWARFSection &LS, bool LE,
25 bool IsDWO, const DWARFUnitVector &UnitVector)
26 : DWARFUnit(Context, Section, Header, DA, RS, LocSection, SS, SOS, AOS,
27 LS, LE, IsDWO, UnitVector) {}
30 ~DWARFCompileUnit() override;
31 /// Dump this compile unit to \p OS.
32 void dump(raw_ostream &OS, DIDumpOptions DumpOpts) override;
33 /// Enable LLVM-style RTTI.
34 static bool classof(const DWARFUnit *U) { return !U->isTypeUnit(); }
37 } // end namespace llvm
39 #endif // LLVM_DEBUGINFO_DWARFCOMPILEUNIT_H