LLVM 20.0.0git
|
This class keeps data and services common for the whole linking process. More...
#include "DWARFLinker/Parallel/DWARFLinkerGlobalData.h"
Public Member Functions | |
llvm::parallel::PerThreadBumpPtrAllocator & | getAllocator () |
Returns global per-thread allocator. | |
StringPool & | getStringPool () |
Returns global string pool. | |
const DWARFLinkerOptions & | getOptions () 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< Triple > | TargetTriple |
Triple for output data. | |
This class keeps data and services common for the whole linking process.
Definition at line 85 of file DWARFLinkerGlobalData.h.
|
inline |
Report error.
Definition at line 121 of file DWARFLinkerGlobalData.h.
References ErrorHandler.
Referenced by llvm::dwarf_linker::parallel::CompileUnit::error(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::link(), and llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::loadClangModule().
|
inline |
Report error.
Definition at line 128 of file DWARFLinkerGlobalData.h.
References error, llvm::handleAllErrors(), and Info.
|
inline |
Returns global per-thread allocator.
Definition at line 90 of file DWARFLinkerGlobalData.h.
References Allocator.
Referenced by llvm::dwarf_linker::parallel::StringEntryToDwarfStringPoolEntryMap::add().
|
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().
|
inline |
Returns global string pool.
Definition at line 95 of file DWARFLinkerGlobalData.h.
References Strings.
Referenced by llvm::dwarf_linker::parallel::DWARFLinkerImpl::cleanupDataAfterDWARFOutputIsWritten(), llvm::dwarf_linker::parallel::DIEAttributeCloner::cloneScalarAttr(), llvm::dwarf_linker::parallel::DIEAttributeCloner::cloneStringAttr(), llvm::dwarf_linker::parallel::TypeUnit::createDIETree(), llvm::dwarf_linker::parallel::SectionDescriptor::emitString(), llvm::dwarf_linker::parallel::AcceleratorRecordsSaver::save(), and llvm::dwarf_linker::parallel::AcceleratorRecordsSaver::saveObjC().
|
inline |
Optionally return target triple.
Definition at line 140 of file DWARFLinkerGlobalData.h.
References TargetTriple.
Referenced by llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::cloneAndEmitDebugFrame(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::emitCommonSectionsAndWriteCompileUnitsToTheOutput(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::emitInvariantSections(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::glueCompileUnitsAndWriteToTheOutput(), and llvm::dwarf_linker::parallel::DWARFLinkerImpl::link().
|
inline |
Set error handler.
Definition at line 104 of file DWARFLinkerGlobalData.h.
References ErrorHandler.
Referenced by llvm::dwarf_linker::parallel::DWARFLinkerImpl::DWARFLinkerImpl().
|
inline |
Set target triple.
Definition at line 135 of file DWARFLinkerGlobalData.h.
References TargetTriple.
Referenced by llvm::dwarf_linker::parallel::DWARFLinkerImpl::setOutputDWARFHandler().
|
inline |
Set warning handler.
Definition at line 101 of file DWARFLinkerGlobalData.h.
References WarningHandler.
Referenced by llvm::dwarf_linker::parallel::DWARFLinkerImpl::DWARFLinkerImpl().
|
inline |
Report warning.
Definition at line 107 of file DWARFLinkerGlobalData.h.
References llvm::Warning, and WarningHandler.
Referenced by llvm::dwarf_linker::parallel::DwarfUnit::error(), llvm::dwarf_linker::parallel::CompileUnit::error(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::isClangModuleRef(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::loadClangModule(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::validateAndUpdateOptions(), llvm::dwarf_linker::parallel::DwarfUnit::warn(), llvm::dwarf_linker::parallel::CompileUnit::warn(), and warn().
|
inline |
Report warning.
Definition at line 114 of file DWARFLinkerGlobalData.h.
References llvm::handleAllErrors(), Info, warn(), and llvm::Warning.
|
protected |
Definition at line 148 of file DWARFLinkerGlobalData.h.
Referenced by getAllocator().
|
protected |
Definition at line 152 of file DWARFLinkerGlobalData.h.
Referenced by error(), and setErrorHandler().
|
protected |
Definition at line 150 of file DWARFLinkerGlobalData.h.
Referenced by llvm::dwarf_linker::parallel::DWARFLinkerImpl::addAccelTableKind(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::emitCommonSectionsAndWriteCompileUnitsToTheOutput(), getOptions(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::link(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setAllowNonDeterministicOutput(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setInputVerificationHandler(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setKeepFunctionForStatic(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setNoODR(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setNumThreads(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setObjectPrefixMap(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setPrependPath(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setStatistics(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setSwiftInterfacesMap(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setTargetDWARFVersion(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setUpdateIndexTablesOnly(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setVerbosity(), llvm::dwarf_linker::parallel::DWARFLinkerImpl::setVerifyInputDWARF(), and llvm::dwarf_linker::parallel::DWARFLinkerImpl::validateAndUpdateOptions().
|
protected |
Definition at line 149 of file DWARFLinkerGlobalData.h.
Referenced by getStringPool().
|
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().
|
protected |
Definition at line 151 of file DWARFLinkerGlobalData.h.
Referenced by setWarningHandler(), and warn().