LLVM 24.0.0git
llvm::dwarf_linker::RelocationFixups Class Reference

Where the attributes of a unit were cloned to, so that their relocations can be saved once the output offsets of the unit are known. More...

#include "llvm/DWARFLinker/RelocationFixups.h"

Classes

struct  AttributeSource
 What an attribute being cloned was cloned from. More...
class  ClonedExpression
 Where the operations of an expression were cloned to. More...
struct  DebugAddrEntry
 An address attribute cloned from one .debug_addr entry into another. More...

Public Member Functions

LLVM_ABI void noteAttribute (dwarf::Tag Tag, dwarf::Attribute Attr, uint64_t InputStart, uint64_t InputEnd, uint64_t OutputOffset, const AttributeSource &Source)
 Notes that the attribute Attr of a DIE tagged Tag was cloned from [InputStart, InputEnd) of .debug_info to OutputOffset, which does not count the abbreviation number of the DIE yet.
LLVM_ABI void finishDIE (uint64_t AbbrevNumberSize)
 Completes the attributes noted since the previous call, once the DIE has an abbreviation number.
void noteDebugAddrEntry (DebugAddrEntry Entry)
 Notes that a location list operation kept an index into .debug_addr.
void setDebugAddrTableOffset (uint64_t Offset)
LLVM_ABI void save (AddressesMap &Addresses, uint64_t UnitOffset, uint8_t AddrSize) const
 Saves the relocations, for the unit at UnitOffset in the input.
bool empty () const
LLVM_ABI void clear ()

Detailed Description

Where the attributes of a unit were cloned to, so that their relocations can be saved once the output offsets of the unit are known.

Definition at line 24 of file RelocationFixups.h.

Member Function Documentation

◆ clear()

void RelocationFixups::clear ( )

Definition at line 87 of file RelocationFixups.cpp.

◆ empty()

bool llvm::dwarf_linker::RelocationFixups::empty ( ) const
inline

Definition at line 110 of file RelocationFixups.h.

◆ finishDIE()

void RelocationFixups::finishDIE ( uint64_t AbbrevNumberSize)

Completes the attributes noted since the previous call, once the DIE has an abbreviation number.

Definition at line 44 of file RelocationFixups.cpp.

◆ noteAttribute()

void RelocationFixups::noteAttribute ( dwarf::Tag Tag,
dwarf::Attribute Attr,
uint64_t InputStart,
uint64_t InputEnd,
uint64_t OutputOffset,
const AttributeSource & Source )

Notes that the attribute Attr of a DIE tagged Tag was cloned from [InputStart, InputEnd) of .debug_info to OutputOffset, which does not count the abbreviation number of the DIE yet.

Definition at line 15 of file RelocationFixups.cpp.

References llvm::dwarf_linker::DebugInfo, and llvm::Tag.

◆ noteDebugAddrEntry()

void llvm::dwarf_linker::RelocationFixups::noteDebugAddrEntry ( DebugAddrEntry Entry)
inline

Notes that a location list operation kept an index into .debug_addr.

Definition at line 98 of file RelocationFixups.h.

◆ save()

void RelocationFixups::save ( AddressesMap & Addresses,
uint64_t UnitOffset,
uint8_t AddrSize ) const

Saves the relocations, for the unit at UnitOffset in the input.

Definition at line 52 of file RelocationFixups.cpp.

References llvm::dwarf_linker::DebugAddr, llvm::dwarf_linker::DebugInfo, llvm::stable_sort(), and llvm::dwarf_linker::AddressesMap::updateAndSaveValidRelocs().

◆ setDebugAddrTableOffset()

void llvm::dwarf_linker::RelocationFixups::setDebugAddrTableOffset ( uint64_t Offset)
inline

Definition at line 102 of file RelocationFixups.h.

References llvm::Offset, and uint64_t.


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