LLVM 22.0.0git
llvm::DIELabel Class Reference

A label DIE. More...

#include "llvm/CodeGen/DIE.h"

Public Member Functions

 DIELabel (const MCSymbol *L)
const MCSymbolgetValue () const
 Get MCSymbol.
LLVM_ABI void emitValue (const AsmPrinter *AP, dwarf::Form Form) const
 EmitValue - Emit label value.
LLVM_ABI unsigned sizeOf (const dwarf::FormParams &FormParams, dwarf::Form Form) const
 sizeOf - Determine size of label value in bytes.
LLVM_ABI void print (raw_ostream &O) const

Detailed Description

A label DIE.

Definition at line 226 of file DIE.h.

Constructor & Destructor Documentation

◆ DIELabel()

llvm::DIELabel::DIELabel ( const MCSymbol * L)
inlineexplicit

Definition at line 230 of file DIE.h.

Member Function Documentation

◆ emitValue()

void DIELabel::emitValue ( const AsmPrinter * AP,
dwarf::Form Form ) const

EmitValue - Emit label value.

Definition at line 486 of file DIE.cpp.

References llvm::AsmPrinter::emitLabelReference(), llvm::AsmPrinter::getDwarfFormParams(), and sizeOf().

Referenced by llvm::DIEString::emitValue().

◆ getValue()

const MCSymbol * llvm::DIELabel::getValue ( ) const
inline

Get MCSymbol.

Definition at line 233 of file DIE.h.

◆ print()

LLVM_DUMP_METHOD void DIELabel::print ( raw_ostream & O) const

Definition at line 512 of file DIE.cpp.

◆ sizeOf()

unsigned DIELabel::sizeOf ( const dwarf::FormParams & FormParams,
dwarf::Form Form ) const

sizeOf - Determine size of label value in bytes.

Definition at line 494 of file DIE.cpp.

References llvm::dwarf::FormParams::AddrSize, llvm::dwarf::FormParams::getDwarfOffsetByteSize(), and llvm_unreachable.

Referenced by emitValue(), and llvm::DIEString::sizeOf().


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