LLVM 22.0.0git
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)

◆ OutputUnitVariantPtr() [2/2]

CompileUnit::OutputUnitVariantPtr::OutputUnitVariantPtr ( TypeUnit * U)

Definition at line 1801 of file DWARFLinkerCompileUnit.cpp.

References assert(), and Ptr.

Member Function Documentation

◆ getAsCompileUnit()

CompileUnit * CompileUnit::OutputUnitVariantPtr::getAsCompileUnit ( )

Returns CompileUnit if applicable.

Definition at line 1820 of file DWARFLinkerCompileUnit.cpp.

References llvm::cast(), llvm::dwarf_linker::parallel::CompileUnit::CompileUnit(), and Ptr.

Referenced by operator->().

◆ getAsTypeUnit()

TypeUnit * CompileUnit::OutputUnitVariantPtr::getAsTypeUnit ( )

Returns TypeUnit if applicable.

Definition at line 1824 of file DWARFLinkerCompileUnit.cpp.

References llvm::cast(), and Ptr.

Referenced by operator->().

◆ isCompileUnit()

bool CompileUnit::OutputUnitVariantPtr::isCompileUnit ( )

Definition at line 1812 of file DWARFLinkerCompileUnit.cpp.

References llvm::isa(), and Ptr.

◆ isTypeUnit()

bool CompileUnit::OutputUnitVariantPtr::isTypeUnit ( )

Definition at line 1816 of file DWARFLinkerCompileUnit.cpp.

References llvm::isa(), and Ptr.

◆ operator->()

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

Member Data Documentation

◆ Ptr

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

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