blob: b3190b18763055d8d0524be45dc67c25689b8660 [file] [log] [blame]
Benjamin Krameraa2f78f2011-09-13 19:42:23 +00001//===-- 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
Benjamin Kramera7c40ef2014-08-13 16:26:38 +000010#ifndef LLVM_LIB_DEBUGINFO_DWARFCOMPILEUNIT_H
11#define LLVM_LIB_DEBUGINFO_DWARFCOMPILEUNIT_H
Benjamin Krameraa2f78f2011-09-13 19:42:23 +000012
David Blaikie07e22442013-09-23 22:44:40 +000013#include "DWARFUnit.h"
Benjamin Krameraa2f78f2011-09-13 19:42:23 +000014
15namespace llvm {
16
David Blaikie07e22442013-09-23 22:44:40 +000017class DWARFCompileUnit : public DWARFUnit {
Benjamin Krameraa2f78f2011-09-13 19:42:23 +000018public:
Alexey Samsonov4b4d64b2014-10-08 00:24:41 +000019 DWARFCompileUnit(DWARFContext &Context, const DWARFSection &Section,
20 const DWARFDebugAbbrev *DA, StringRef RS, StringRef SS,
21 StringRef SOS, StringRef AOS, bool LE,
Frederic Riss4e126a02014-09-15 07:50:27 +000022 const DWARFUnitSectionBase &UnitSection)
Alexey Samsonov4b4d64b2014-10-08 00:24:41 +000023 : DWARFUnit(Context, Section, DA, RS, SS, SOS, AOS, LE, UnitSection) {}
Benjamin Krameraa2f78f2011-09-13 19:42:23 +000024 void dump(raw_ostream &OS);
David Blaikie07e22442013-09-23 22:44:40 +000025 // VTable anchor.
Craig Topper73156022014-03-02 09:09:27 +000026 ~DWARFCompileUnit() override;
Benjamin Krameraa2f78f2011-09-13 19:42:23 +000027};
28
29}
30
31#endif