LLVM API Documentation

Public Member Functions | Protected Member Functions
llvm::DwarfTypeUnit Class Reference

#include <DwarfUnit.h>

Inheritance diagram for llvm::DwarfTypeUnit:
Inheritance graph
[legend]
Collaboration diagram for llvm::DwarfTypeUnit:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DwarfTypeUnit (unsigned UID, DwarfCompileUnit &CU, AsmPrinter *A, DwarfDebug *DW, DwarfFile *DWU, MCDwarfDwoLineTable *SplitLineTable=nullptr)
void setTypeSignature (uint64_t Signature)
uint64_t getTypeSignature () const
void setType (const DIE *Ty)
void emitHeader (const MCSymbol *ASectionSym) const override
 Emit the header for this unit, not including the initial length field.
unsigned getHeaderSize () const override
void initSection (const MCSection *Section)
DwarfCompileUnitgetCU () override

Protected Member Functions

unsigned getOrCreateSourceID (StringRef File, StringRef Directory) override

Detailed Description

Definition at line 560 of file DwarfUnit.h.


Constructor & Destructor Documentation

DwarfTypeUnit::DwarfTypeUnit ( unsigned  UID,
DwarfCompileUnit CU,
AsmPrinter A,
DwarfDebug DW,
DwarfFile DWU,
MCDwarfDwoLineTable SplitLineTable = nullptr 
)

Member Function Documentation

void DwarfTypeUnit::emitHeader ( const MCSymbol ASectionSym) const [override, virtual]

Emit the header for this unit, not including the initial length field.

Reimplemented from llvm::DwarfUnit.

Definition at line 2088 of file DwarfUnit.cpp.

References llvm::MCStreamer::AddComment(), llvm::DwarfUnit::Asm, llvm::MCStreamer::EmitIntValue(), and llvm::AsmPrinter::OutStreamer.

DwarfCompileUnit& llvm::DwarfTypeUnit::getCU ( ) [inline, override, virtual]

Implements llvm::DwarfUnit.

Definition at line 587 of file DwarfUnit.h.

Referenced by getOrCreateSourceID().

unsigned llvm::DwarfTypeUnit::getHeaderSize ( ) const [inline, override, virtual]

Compute the size of a header for this unit, not including the initial length field.

Reimplemented from llvm::DwarfUnit.

Definition at line 578 of file DwarfUnit.h.

unsigned DwarfTypeUnit::getOrCreateSourceID ( StringRef  File,
StringRef  Directory 
) [override, protected, virtual]

Look up the source ID with the given directory and source file names. If none currently exists, create a new ID and insert it in the line table.

Implements llvm::DwarfUnit.

Definition at line 327 of file DwarfUnit.cpp.

References getCU(), llvm::MCDwarfDwoLineTable::getFile(), and llvm::DwarfCompileUnit::getOrCreateSourceID().

uint64_t llvm::DwarfTypeUnit::getTypeSignature ( ) const [inline]
void llvm::DwarfTypeUnit::setType ( const DIE Ty) [inline]

Definition at line 574 of file DwarfUnit.h.

void llvm::DwarfTypeUnit::setTypeSignature ( uint64_t  Signature) [inline]

Definition at line 572 of file DwarfUnit.h.


The documentation for this class was generated from the following files: