LLVM 20.0.0git
Public Member Functions | List of all members
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.
 
void emitValue (const AsmPrinter *AP, dwarf::Form Form) const
 EmitValue - Emit label value.
 
unsigned sizeOf (const dwarf::FormParams &FormParams, dwarf::Form Form) const
 sizeOf - Determine size of label value in bytes.
 
void print (raw_ostream &O) const
 

Detailed Description

A label DIE.

Definition at line 223 of file DIE.h.

Constructor & Destructor Documentation

◆ DIELabel()

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

Definition at line 227 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 483 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 230 of file DIE.h.

◆ print()

LLVM_DUMP_METHOD void DIELabel::print ( raw_ostream O) const

Definition at line 509 of file DIE.cpp.

References llvm::MCSymbol::getName().

◆ sizeOf()

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

sizeOf - Determine size of label value in bytes.

Definition at line 491 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: