blob: 4fee0d2f8ad448b890cc83757fbe1ce1942be78b [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 Samsonov7682f812014-04-24 22:51:03 +000019 DWARFCompileUnit(const DWARFDebugAbbrev *DA, StringRef IS, StringRef RS,
20 StringRef SS, StringRef SOS, StringRef AOS,
David Blaikie07e22442013-09-23 22:44:40 +000021 const RelocAddrMap *M, bool LE)
Alexey Samsonov7682f812014-04-24 22:51:03 +000022 : DWARFUnit(DA, IS, RS, SS, SOS, AOS, M, LE) {}
Benjamin Krameraa2f78f2011-09-13 19:42:23 +000023 void dump(raw_ostream &OS);
David Blaikie07e22442013-09-23 22:44:40 +000024 // VTable anchor.
Craig Topper73156022014-03-02 09:09:27 +000025 ~DWARFCompileUnit() override;
Benjamin Krameraa2f78f2011-09-13 19:42:23 +000026};
27
28}
29
30#endif