LLVM 19.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
llvm::dwarf_linker::DWARFFile Class Reference

This class represents DWARF information for source file and it's address map. More...

#include "llvm/DWARFLinker/DWARFFile.h"

Public Types

using UnloadCallbackTy = std::function< void(StringRef FileName)>
 

Public Member Functions

 DWARFFile (StringRef Name, std::unique_ptr< DWARFContext > Dwarf, std::unique_ptr< AddressesMap > Addresses, UnloadCallbackTy UnloadFunc=nullptr)
 
void unload ()
 Unloads object file and corresponding AddressesMap and Dwarf Context.
 

Public Attributes

StringRef FileName
 Object file name.
 
std::unique_ptr< DWARFContextDwarf
 Source DWARF information.
 
std::unique_ptr< AddressesMapAddresses
 Helpful address information(list of valid address ranges, relocations).
 
UnloadCallbackTy UnloadFunc
 Callback to the module keeping object file to unload.
 

Detailed Description

This class represents DWARF information for source file and it's address map.

May be used asynchroniously for reading.

Definition at line 25 of file DWARFFile.h.

Member Typedef Documentation

◆ UnloadCallbackTy

Definition at line 27 of file DWARFFile.h.

Constructor & Destructor Documentation

◆ DWARFFile()

llvm::dwarf_linker::DWARFFile::DWARFFile ( StringRef  Name,
std::unique_ptr< DWARFContext Dwarf,
std::unique_ptr< AddressesMap Addresses,
UnloadCallbackTy  UnloadFunc = nullptr 
)
inline

Definition at line 29 of file DWARFFile.h.

Member Function Documentation

◆ unload()

void llvm::dwarf_linker::DWARFFile::unload ( )
inline

Unloads object file and corresponding AddressesMap and Dwarf Context.

Definition at line 48 of file DWARFFile.h.

References Addresses, Dwarf, FileName, and UnloadFunc.

Member Data Documentation

◆ Addresses

std::unique_ptr<AddressesMap> llvm::dwarf_linker::DWARFFile::Addresses

Helpful address information(list of valid address ranges, relocations).

Definition at line 42 of file DWARFFile.h.

Referenced by llvm::dwarf_linker::parallel::DIEAttributeCloner::clone(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::link(), and unload().

◆ Dwarf

std::unique_ptr<DWARFContext> llvm::dwarf_linker::DWARFFile::Dwarf

◆ FileName

StringRef llvm::dwarf_linker::DWARFFile::FileName

◆ UnloadFunc

UnloadCallbackTy llvm::dwarf_linker::DWARFFile::UnloadFunc

Callback to the module keeping object file to unload.

Definition at line 45 of file DWARFFile.h.

Referenced by unload().


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