LLVM API Documentation
#include <AddressPool.h>
Classes | |
struct | AddressPoolEntry |
Public Member Functions | |
AddressPool () | |
unsigned | getIndex (const MCSymbol *Sym, bool TLS=false) |
Returns the index into the address pool with the given label/symbol. | |
void | emit (AsmPrinter &Asm, const MCSection *AddrSection) |
bool | isEmpty () |
bool | hasBeenUsed () const |
void | resetUsedFlag () |
Definition at line 22 of file AddressPool.h.
llvm::AddressPool::AddressPool | ( | ) | [inline] |
Definition at line 37 of file AddressPool.h.
void AddressPool::emit | ( | AsmPrinter & | Asm, |
const MCSection * | AddrSection | ||
) |
Definition at line 27 of file AddressPool.cpp.
References llvm::MCSymbolRefExpr::Create(), llvm::MCStreamer::EmitValue(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::empty(), llvm::AsmPrinter::getDataLayout(), llvm::TargetLoweringObjectFile::getDebugThreadLocalSymbol(), llvm::AsmPrinter::getObjFileLowering(), llvm::DataLayout::getPointerSize(), I, llvm::AsmPrinter::OutContext, llvm::AsmPrinter::OutStreamer, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::size(), and llvm::MCStreamer::SwitchSection().
Referenced by llvm::DwarfDebug::endModule().
Returns the index into the address pool with the given label/symbol.
Definition at line 19 of file AddressPool.cpp.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::insert(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::size().
Referenced by llvm::DwarfCompileUnit::addLabelAddress(), llvm::DwarfUnit::addOpAddress(), and llvm::DwarfCompileUnit::createGlobalVariableDIE().
bool llvm::AddressPool::hasBeenUsed | ( | ) | const [inline] |
Definition at line 47 of file AddressPool.h.
Referenced by llvm::DwarfDebug::addDwarfTypeUnitType().
bool llvm::AddressPool::isEmpty | ( | ) | [inline] |
Definition at line 45 of file AddressPool.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::empty().
void llvm::AddressPool::resetUsedFlag | ( | ) | [inline] |
Definition at line 49 of file AddressPool.h.
Referenced by llvm::DwarfDebug::addDwarfTypeUnitType().