LLVM 19.0.0git
Classes | Public Member Functions | List of all members
llvm::AddressPool Class Reference

#include "CodeGen/AsmPrinter/AddressPool.h"

Public Member Functions

 AddressPool ()=default
unsigned getIndex (const MCSymbol *Sym, bool TLS=false)
 Returns the index into the address pool with the given label/symbol.
void emit (AsmPrinter &Asm, MCSection *AddrSection)
bool isEmpty ()
bool hasBeenUsed () const
void resetUsedFlag (bool HasBeenUsed=false)
MCSymbolgetLabel ()
void setLabel (MCSymbol *Sym)

Detailed Description

Definition at line 23 of file AddressPool.h.

Constructor & Destructor Documentation

◆ AddressPool()

llvm::AddressPool::AddressPool ( )

Member Function Documentation

◆ emit()

void AddressPool::emit ( AsmPrinter Asm,
MCSection AddrSection 

Definition at line 43 of file AddressPool.cpp.

References llvm::MCSymbolRefExpr::create(), I, and isEmpty().

◆ getIndex()

unsigned AddressPool::getIndex ( const MCSymbol Sym,
bool  TLS = false 

Returns the index into the address pool with the given label/symbol.

Definition at line 20 of file AddressPool.cpp.

References resetUsedFlag(), and Sym.

Referenced by llvm::DwarfCompileUnit::addLabelAddress(), llvm::DwarfCompileUnit::addLocationAttribute(), llvm::DwarfUnit::addPoolOpAddress(), emitRangeList(), and llvm::DwarfDebug::insertSectionLabel().

◆ getLabel()

MCSymbol * llvm::AddressPool::getLabel ( )

Definition at line 53 of file AddressPool.h.

Referenced by llvm::DwarfCompileUnit::addAddrTableBase().

◆ hasBeenUsed()

bool llvm::AddressPool::hasBeenUsed ( ) const

Definition at line 49 of file AddressPool.h.

Referenced by llvm::DwarfDebug::addDwarfTypeUnitType().

◆ isEmpty()

bool llvm::AddressPool::isEmpty ( )

◆ resetUsedFlag()

void llvm::AddressPool::resetUsedFlag ( bool  HasBeenUsed = false)

Definition at line 51 of file AddressPool.h.

Referenced by llvm::DwarfDebug::addDwarfTypeUnitType(), and getIndex().

◆ setLabel()

void llvm::AddressPool::setLabel ( MCSymbol Sym)

Definition at line 54 of file AddressPool.h.

References Sym.

Referenced by llvm::DwarfDebug::beginModule().

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