LLVM  8.0.0svn
DWARFCompileUnit.h
Go to the documentation of this file.
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 
15 
16 namespace llvm {
17 
18 class DWARFCompileUnit : public DWARFUnit {
19 public:
21  const DWARFUnitHeader &Header, const DWARFDebugAbbrev *DA,
22  const DWARFSection *RS, const DWARFSection *LocSection,
23  StringRef SS, const DWARFSection &SOS,
24  const DWARFSection *AOS, const DWARFSection &LS, bool LE,
25  bool IsDWO, const DWARFUnitVector &UnitVector)
26  : DWARFUnit(Context, Section, Header, DA, RS, LocSection, SS, SOS, AOS,
27  LS, LE, IsDWO, UnitVector) {}
28 
29  /// VTable anchor.
30  ~DWARFCompileUnit() override;
31  /// Dump this compile unit to \p OS.
32  void dump(raw_ostream &OS, DIDumpOptions DumpOpts) override;
33  /// Enable LLVM-style RTTI.
34  static bool classof(const DWARFUnit *U) { return !U->isTypeUnit(); }
35 };
36 
37 } // end namespace llvm
38 
39 #endif // LLVM_DEBUGINFO_DWARFCOMPILEUNIT_H
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
bool isTypeUnit() const
Definition: DWARFUnit.h:287
~DWARFCompileUnit() override
VTable anchor.
void dump(raw_ostream &OS, DIDumpOptions DumpOpts) override
Dump this compile unit to OS.
Container for dump options that control which debug information will be dumped.
Definition: DIContext.h:154
Base class describing the header of any kind of "unit." Some information is specific to certain unit ...
Definition: DWARFUnit.h:47
const DWARFSection * LocSection
Definition: DWARFUnit.h:199
DWARFContext This data structure is the top level entity that deals with dwarf debug information pars...
Definition: DWARFContext.h:59
Describe a collection of units.
Definition: DWARFUnit.h:109
static bool classof(const DWARFUnit *U)
Enable LLVM-style RTTI.
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:46
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
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)