LLVM 22.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
15namespace llvm {
16
17class DWARFContext;
19class raw_ostream;
20struct DIDumpOptions;
21struct DWARFSection;
22
24public:
25 DWARFCompileUnit(DWARFContext &Context, const DWARFSection &Section,
26 const DWARFUnitHeader &Header, const DWARFDebugAbbrev *DA,
27 const DWARFSection *RS, const DWARFSection *LocSection,
28 StringRef SS, const DWARFSection &SOS,
29 const DWARFSection *AOS, const DWARFSection &LS, bool LE,
30 bool IsDWO, const DWARFUnitVector &UnitVector)
31 : DWARFUnit(Context, Section, Header, DA, RS, LocSection, SS, SOS, AOS,
32 LS, LE, IsDWO, UnitVector) {}
33
34 /// VTable anchor.
36 /// Dump this compile unit to \p OS.
37 void dump(raw_ostream &OS, DIDumpOptions DumpOpts) override;
38 /// Enable LLVM-style RTTI.
39 static bool classof(const DWARFUnit *U) { return !U->isTypeUnit(); }
40};
41
42} // end namespace llvm
43
44#endif // LLVM_DEBUGINFO_DWARF_DWARFCOMPILEUNIT_H
#define LLVM_ABI
Definition Compiler.h:213
~DWARFCompileUnit() override
VTable anchor.
static bool classof(const DWARFUnit *U)
Enable LLVM-style RTTI.
void dump(raw_ostream &OS, DIDumpOptions DumpOpts) override
Dump this compile unit to OS.
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)
DWARFContext This data structure is the top level entity that deals with dwarf debug information pars...
Base class describing the header of any kind of "unit." Some information is specific to certain unit ...
Definition DWARFUnit.h:56
Describe a collection of units.
Definition DWARFUnit.h:130
DWARFUnit(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)
StringRef - Represent a constant reference to a string, i.e.
Definition StringRef.h:55
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition raw_ostream.h:53
This is an optimization pass for GlobalISel generic memory operations.
Container for dump options that control which debug information will be dumped.
Definition DIContext.h:196