blob: 47c7191d96e28c576c6c29a5a6b8544daf2f979c [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:
Frederic Risse10ccef2014-09-04 06:14:28 +000019 DWARFCompileUnit(DWARFContext& Context, const DWARFDebugAbbrev *DA,
20 StringRef IS, StringRef RS, StringRef SS, StringRef SOS,
Frederic Riss4e126a02014-09-15 07:50:27 +000021 StringRef AOS, const RelocAddrMap *M, bool LE,
22 const DWARFUnitSectionBase &UnitSection)
23 : DWARFUnit(Context, DA, IS, RS, SS, SOS, AOS, M, 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