blob: 27d56d72f0a7ac819dc796f08680e2d5bc7ff3de [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===- DWARFCompileUnit.h ---------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLVM_DEBUGINFO_DWARFCOMPILEUNIT_H
11#define LLVM_DEBUGINFO_DWARFCOMPILEUNIT_H
12
13#include "llvm/DebugInfo/DWARF/DWARFUnit.h"
14#include "llvm/DebugInfo/DWARF/DWARFUnitIndex.h"
15
16namespace llvm {
17
18class DWARFCompileUnit : public DWARFUnit {
19public:
20 DWARFCompileUnit(DWARFContext &Context, const DWARFSection &Section,
Andrew Scullcdfcccc2018-10-05 20:58:37 +010021 const DWARFUnitHeader &Header,
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010022 const DWARFDebugAbbrev *DA, const DWARFSection *RS,
23 StringRef SS, const DWARFSection &SOS,
24 const DWARFSection *AOS, const DWARFSection &LS, bool LE,
Andrew Scullcdfcccc2018-10-05 20:58:37 +010025 bool IsDWO, const DWARFUnitVector &UnitVector)
26 : DWARFUnit(Context, Section, Header, DA, RS, SS, SOS, AOS, LS, LE, IsDWO,
27 UnitVector) {}
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010028
Andrew Scullcdfcccc2018-10-05 20:58:37 +010029 /// VTable anchor.
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010030 ~DWARFCompileUnit() override;
Andrew Scullcdfcccc2018-10-05 20:58:37 +010031 /// 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(); }
Andrew Scull5e1ddfa2018-08-14 10:06:54 +010035};
36
37} // end namespace llvm
38
39#endif // LLVM_DEBUGINFO_DWARFCOMPILEUNIT_H