]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/include/llvm/DebugInfo/DWARF/DWARFCompileUnit.h
Merge llvm, clang, lld, lldb, compiler-rt and libc++ r303197, and update
[FreeBSD/FreeBSD.git] / contrib / llvm / include / llvm / DebugInfo / DWARF / DWARFCompileUnit.h
1 //===- 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
16 namespace llvm {
17
18 class DWARFCompileUnit : public DWARFUnit {
19 public:
20   DWARFCompileUnit(DWARFContext &Context, const DWARFSection &Section,
21                    const DWARFDebugAbbrev *DA, const DWARFSection *RS,
22                    StringRef SS, StringRef SOS, StringRef AOS, StringRef LS,
23                    bool LE, bool IsDWO, const DWARFUnitSectionBase &UnitSection,
24                    const DWARFUnitIndex::Entry *Entry)
25       : DWARFUnit(Context, Section, DA, RS, SS, SOS, AOS, LS, LE, IsDWO,
26                   UnitSection, Entry) {}
27
28   // VTable anchor.
29   ~DWARFCompileUnit() override;
30
31   void dump(raw_ostream &OS);
32
33   static const DWARFSectionKind Section = DW_SECT_INFO;
34 };
35
36 } // end namespace llvm
37
38 #endif // LLVM_DEBUGINFO_DWARFCOMPILEUNIT_H