LLVM 20.0.0git
Public Member Functions | Protected Attributes | List of all members
llvm::dwarf_linker::parallel::CompileUnit::OutputUnitVariantPtr Class Reference

Output unit selector. More...

#include "DWARFLinker/Parallel/DWARFLinkerCompileUnit.h"

Public Member Functions

 OutputUnitVariantPtr (CompileUnit *U)
 
 OutputUnitVariantPtr (TypeUnit *U)
 
DwarfUnitoperator-> ()
 Accessor for common functionality.
 
bool isCompileUnit ()
 
bool isTypeUnit ()
 
CompileUnitgetAsCompileUnit ()
 Returns CompileUnit if applicable.
 
TypeUnitgetAsTypeUnit ()
 Returns TypeUnit if applicable.
 

Protected Attributes

PointerUnion< CompileUnit *, TypeUnit * > Ptr
 

Detailed Description

Output unit selector.

Definition at line 580 of file DWARFLinkerCompileUnit.h.

Constructor & Destructor Documentation

◆ OutputUnitVariantPtr() [1/2]

CompileUnit::OutputUnitVariantPtr::OutputUnitVariantPtr ( CompileUnit U)

Definition at line 1799 of file DWARFLinkerCompileUnit.cpp.

References assert().

◆ OutputUnitVariantPtr() [2/2]

CompileUnit::OutputUnitVariantPtr::OutputUnitVariantPtr ( TypeUnit U)

Definition at line 1804 of file DWARFLinkerCompileUnit.cpp.

References assert().

Member Function Documentation

◆ getAsCompileUnit()

CompileUnit * CompileUnit::OutputUnitVariantPtr::getAsCompileUnit ( )

◆ getAsTypeUnit()

TypeUnit * CompileUnit::OutputUnitVariantPtr::getAsTypeUnit ( )

◆ isCompileUnit()

bool CompileUnit::OutputUnitVariantPtr::isCompileUnit ( )

◆ isTypeUnit()

bool CompileUnit::OutputUnitVariantPtr::isTypeUnit ( )

◆ operator->()

DwarfUnit * CompileUnit::OutputUnitVariantPtr::operator-> ( )

Accessor for common functionality.

Definition at line 1808 of file DWARFLinkerCompileUnit.cpp.

References llvm::isCompileUnit().

Member Data Documentation

◆ Ptr

PointerUnion<CompileUnit *, TypeUnit *> llvm::dwarf_linker::parallel::CompileUnit::OutputUnitVariantPtr::Ptr
protected

Definition at line 599 of file DWARFLinkerCompileUnit.h.


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