LLVM  13.0.0git
DWARFCompileUnit.h
Go to the documentation of this file.
1 //===- DWARFCompileUnit.h ---------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_DWARF_DWARFCOMPILEUNIT_H
10 #define LLVM_DEBUGINFO_DWARF_DWARFCOMPILEUNIT_H
11 
14 
15 namespace llvm {
16 
17 class DWARFCompileUnit : public DWARFUnit {
18 public:
20  const DWARFUnitHeader &Header, const DWARFDebugAbbrev *DA,
21  const DWARFSection *RS, const DWARFSection *LocSection,
22  StringRef SS, const DWARFSection &SOS,
23  const DWARFSection *AOS, const DWARFSection &LS, bool LE,
24  bool IsDWO, const DWARFUnitVector &UnitVector)
25  : DWARFUnit(Context, Section, Header, DA, RS, LocSection, SS, SOS, AOS,
26  LS, LE, IsDWO, UnitVector) {}
27 
28  /// VTable anchor.
29  ~DWARFCompileUnit() override;
30  /// Dump this compile unit to \p OS.
31  void dump(raw_ostream &OS, DIDumpOptions DumpOpts) override;
32  /// Enable LLVM-style RTTI.
33  static bool classof(const DWARFUnit *U) { return !U->isTypeUnit(); }
34 };
35 
36 } // end namespace llvm
37 
38 #endif // LLVM_DEBUGINFO_DWARF_DWARFCOMPILEUNIT_H
llvm::DWARFSection
Definition: DWARFSection.h:16
llvm
Definition: AllocatorList.h:23
llvm::DWARFCompileUnit::classof
static bool classof(const DWARFUnit *U)
Enable LLVM-style RTTI.
Definition: DWARFCompileUnit.h:33
llvm::DWARFContext
DWARFContext This data structure is the top level entity that deals with dwarf debug information pars...
Definition: DWARFContext.h:53
llvm::DWARFCompileUnit::~DWARFCompileUnit
~DWARFCompileUnit() override
VTable anchor.
Context
LLVMContext & Context
Definition: NVVMIntrRange.cpp:66
llvm::ARMBuildAttrs::Section
@ Section
Legacy Tags.
Definition: ARMBuildAttributes.h:78
llvm::X86AS::SS
@ SS
Definition: X86.h:184
llvm::DWARFDebugAbbrev
Definition: DWARFDebugAbbrev.h:54
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:50
llvm::AArch64CC::LE
@ LE
Definition: AArch64BaseInfo.h:249
llvm::DWARFCompileUnit
Definition: DWARFCompileUnit.h:17
llvm::DWARFCompileUnit::DWARFCompileUnit
DWARFCompileUnit(DWARFContext &Context, const DWARFSection &Section, const DWARFUnitHeader &Header, const DWARFDebugAbbrev *DA, const DWARFSection *RS, const DWARFSection *LocSection, StringRef SS, const DWARFSection &SOS, const DWARFSection *AOS, const DWARFSection &LS, bool LE, bool IsDWO, const DWARFUnitVector &UnitVector)
Definition: DWARFCompileUnit.h:19
llvm::DWARFUnit::isTypeUnit
bool isTypeUnit() const
Definition: DWARFUnit.h:295
llvm::DWARFUnitHeader
Base class describing the header of any kind of "unit." Some information is specific to certain unit ...
Definition: DWARFUnit.h:47
DWARFUnit.h
llvm::M68kBeads::DA
@ DA
Definition: M68kBaseInfo.h:59
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:57
llvm::DWARFCompileUnit::dump
void dump(raw_ostream &OS, DIDumpOptions DumpOpts) override
Dump this compile unit to OS.
Definition: DWARFCompileUnit.cpp:17
llvm::DWARFUnit
Definition: DWARFUnit.h:203
llvm::AArch64CC::LS
@ LS
Definition: AArch64BaseInfo.h:245
DWARFUnitIndex.h
llvm::DIDumpOptions
Container for dump options that control which debug information will be dumped.
Definition: DIContext.h:187
llvm::DWARFUnitVector
Describe a collection of units.
Definition: DWARFUnit.h:120