LLVM 20.0.0git
Public Member Functions | Protected Attributes | List of all members
llvm::dwarf_linker::parallel::LinkingGlobalData Class Reference

This class keeps data and services common for the whole linking process. More...

#include "DWARFLinker/Parallel/DWARFLinkerGlobalData.h"

Public Member Functions

llvm::parallel::PerThreadBumpPtrAllocatorgetAllocator ()
 Returns global per-thread allocator.
 
StringPoolgetStringPool ()
 Returns global string pool.
 
const DWARFLinkerOptionsgetOptions () const
 Returns linking options.
 
void setWarningHandler (MessageHandlerTy Handler)
 Set warning handler.
 
void setErrorHandler (MessageHandlerTy Handler)
 Set error handler.
 
void warn (const Twine &Warning, StringRef Context, const DWARFDie *DIE=nullptr)
 Report warning.
 
void warn (Error Warning, StringRef Context, const DWARFDie *DIE=nullptr)
 Report warning.
 
void error (const Twine &Err, StringRef Context, const DWARFDie *DIE=nullptr)
 Report error.
 
void error (Error Err, StringRef Context, const DWARFDie *DIE=nullptr)
 Report error.
 
void setTargetTriple (const Triple &TargetTriple)
 Set target triple.
 
std::optional< std::reference_wrapper< const Triple > > getTargetTriple ()
 Optionally return target triple.
 

Protected Attributes

llvm::parallel::PerThreadBumpPtrAllocator Allocator
 
StringPool Strings
 
DWARFLinkerOptions Options
 
MessageHandlerTy WarningHandler
 
MessageHandlerTy ErrorHandler
 
std::optional< TripleTargetTriple
 Triple for output data.
 

Detailed Description

This class keeps data and services common for the whole linking process.

Definition at line 85 of file DWARFLinkerGlobalData.h.

Member Function Documentation

◆ error() [1/2]

void llvm::dwarf_linker::parallel::LinkingGlobalData::error ( const Twine Err,
StringRef  Context,
const DWARFDie DIE = nullptr 
)
inline

◆ error() [2/2]

void llvm::dwarf_linker::parallel::LinkingGlobalData::error ( Error  Err,
StringRef  Context,
const DWARFDie DIE = nullptr 
)
inline

Report error.

Definition at line 128 of file DWARFLinkerGlobalData.h.

References error, llvm::handleAllErrors(), and Info.

◆ getAllocator()

llvm::parallel::PerThreadBumpPtrAllocator & llvm::dwarf_linker::parallel::LinkingGlobalData::getAllocator ( )
inline

Returns global per-thread allocator.

Definition at line 90 of file DWARFLinkerGlobalData.h.

References Allocator.

Referenced by llvm::dwarf_linker::parallel::StringEntryToDwarfStringPoolEntryMap::add().

◆ getOptions()

const DWARFLinkerOptions & llvm::dwarf_linker::parallel::LinkingGlobalData::getOptions ( ) const
inline

Returns linking options.

Definition at line 98 of file DWARFLinkerGlobalData.h.

References Options.

Referenced by llvm::dwarf_linker::parallel::DWARFLinkerImpl::addAccelTableKind(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::addObjectFile(), llvm::dwarf_linker::parallel::CompileUnit::analyzeImportedModule(), llvm::dwarf_linker::parallel::DIEAttributeCloner::cloneAddressAttr(), llvm::dwarf_linker::parallel::CompileUnit::cloneAndEmit(), llvm::dwarf_linker::parallel::DIEAttributeCloner::cloneBlockAttr(), llvm::dwarf_linker::parallel::DIEAttributeCloner::cloneScalarAttr(), llvm::dwarf_linker::parallel::CompileUnit::CompileUnit(), llvm::dwarf_linker::parallel::DIEAttributeCloner::DIEAttributeCloner(), llvm::dwarf_linker::parallel::TypeUnit::finishCloningAndEmit(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::glueCompileUnitsAndWriteToTheOutput(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::isClangModuleRef(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::link(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::link(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::linkSingleCompileUnit(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::loadClangModule(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::registerModuleReference(), llvm::dwarf_linker::parallel::AcceleratorRecordsSaver::save(), llvm::dwarf_linker::parallel::DIEAttributeCloner::shouldSkipAttribute(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::validateAndUpdateOptions(), and llvm::dwarf_linker::parallel::DWARFLinkerImpl::verifyInput().

◆ getStringPool()

StringPool & llvm::dwarf_linker::parallel::LinkingGlobalData::getStringPool ( )
inline

◆ getTargetTriple()

std::optional< std::reference_wrapper< const Triple > > llvm::dwarf_linker::parallel::LinkingGlobalData::getTargetTriple ( )
inline

◆ setErrorHandler()

void llvm::dwarf_linker::parallel::LinkingGlobalData::setErrorHandler ( MessageHandlerTy  Handler)
inline

Set error handler.

Definition at line 104 of file DWARFLinkerGlobalData.h.

References ErrorHandler.

Referenced by llvm::dwarf_linker::parallel::DWARFLinkerImpl::DWARFLinkerImpl().

◆ setTargetTriple()

void llvm::dwarf_linker::parallel::LinkingGlobalData::setTargetTriple ( const Triple TargetTriple)
inline

Set target triple.

Definition at line 135 of file DWARFLinkerGlobalData.h.

References TargetTriple.

Referenced by llvm::dwarf_linker::parallel::DWARFLinkerImpl::setOutputDWARFHandler().

◆ setWarningHandler()

void llvm::dwarf_linker::parallel::LinkingGlobalData::setWarningHandler ( MessageHandlerTy  Handler)
inline

Set warning handler.

Definition at line 101 of file DWARFLinkerGlobalData.h.

References WarningHandler.

Referenced by llvm::dwarf_linker::parallel::DWARFLinkerImpl::DWARFLinkerImpl().

◆ warn() [1/2]

void llvm::dwarf_linker::parallel::LinkingGlobalData::warn ( const Twine Warning,
StringRef  Context,
const DWARFDie DIE = nullptr 
)
inline

◆ warn() [2/2]

void llvm::dwarf_linker::parallel::LinkingGlobalData::warn ( Error  Warning,
StringRef  Context,
const DWARFDie DIE = nullptr 
)
inline

Report warning.

Definition at line 114 of file DWARFLinkerGlobalData.h.

References llvm::handleAllErrors(), Info, warn(), and llvm::Warning.

Member Data Documentation

◆ Allocator

llvm::parallel::PerThreadBumpPtrAllocator llvm::dwarf_linker::parallel::LinkingGlobalData::Allocator
protected

Definition at line 148 of file DWARFLinkerGlobalData.h.

Referenced by getAllocator().

◆ ErrorHandler

MessageHandlerTy llvm::dwarf_linker::parallel::LinkingGlobalData::ErrorHandler
protected

Definition at line 152 of file DWARFLinkerGlobalData.h.

Referenced by error(), and setErrorHandler().

◆ Options

DWARFLinkerOptions llvm::dwarf_linker::parallel::LinkingGlobalData::Options
protected

◆ Strings

StringPool llvm::dwarf_linker::parallel::LinkingGlobalData::Strings
protected

Definition at line 149 of file DWARFLinkerGlobalData.h.

Referenced by getStringPool().

◆ TargetTriple

std::optional<Triple> llvm::dwarf_linker::parallel::LinkingGlobalData::TargetTriple
protected

Triple for output data.

May be not set if generation of output data is not requested.

Definition at line 156 of file DWARFLinkerGlobalData.h.

Referenced by getTargetTriple(), and setTargetTriple().

◆ WarningHandler

MessageHandlerTy llvm::dwarf_linker::parallel::LinkingGlobalData::WarningHandler
protected

Definition at line 151 of file DWARFLinkerGlobalData.h.

Referenced by setWarningHandler(), and warn().


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