LLVM 20.0.0git
|
This class creates a DwarfStringPoolEntry for the corresponding StringEntry. More...
#include "DWARFLinker/Parallel/StringEntryToDwarfStringPoolEntryMap.h"
Public Member Functions | |
StringEntryToDwarfStringPoolEntryMap (LinkingGlobalData &GlobalData) | |
~StringEntryToDwarfStringPoolEntryMap () | |
DwarfStringPoolEntryWithExtString * | add (const StringEntry *String) |
Create DwarfStringPoolEntry for specified StringEntry if necessary. | |
DwarfStringPoolEntryWithExtString * | getExistingEntry (const StringEntry *String) const |
Returns already existed DwarfStringPoolEntry for the specified StringEntry. | |
void | clear () |
Erase contents of StringsForEmission. | |
Protected Types | |
using | DwarfStringPoolEntriesTy = DenseMap< const StringEntry *, DwarfStringPoolEntryWithExtString * > |
Protected Attributes | |
DwarfStringPoolEntriesTy | DwarfStringPoolEntries |
LinkingGlobalData & | GlobalData |
This class creates a DwarfStringPoolEntry for the corresponding StringEntry.
Definition at line 21 of file StringEntryToDwarfStringPoolEntryMap.h.
|
protected |
Definition at line 63 of file StringEntryToDwarfStringPoolEntryMap.h.
|
inline |
Definition at line 23 of file StringEntryToDwarfStringPoolEntryMap.h.
|
inline |
Definition at line 25 of file StringEntryToDwarfStringPoolEntryMap.h.
|
inline |
Create DwarfStringPoolEntry for specified StringEntry if necessary.
Initialize DwarfStringPoolEntry with initial values.
Definition at line 29 of file StringEntryToDwarfStringPoolEntryMap.h.
References assert(), DwarfStringPoolEntries, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), llvm::dwarf_linker::parallel::LinkingGlobalData::getAllocator(), GlobalData, llvm::DwarfStringPoolEntry::Index, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::insert(), llvm::DwarfStringPoolEntry::NotIndexed, llvm::DwarfStringPoolEntry::Offset, llvm::DwarfStringPoolEntryWithExtString::String, llvm::String, and llvm::DwarfStringPoolEntry::Symbol.
Referenced by llvm::dwarf_linker::parallel::DWARFLinkerImpl::assignOffsetsToStrings().
|
inline |
Erase contents of StringsForEmission.
Definition at line 60 of file StringEntryToDwarfStringPoolEntryMap.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::clear(), and DwarfStringPoolEntries.
Referenced by llvm::dwarf_linker::parallel::DWARFLinkerImpl::cleanupDataAfterDWARFOutputIsWritten().
|
inline |
Returns already existed DwarfStringPoolEntry for the specified StringEntry.
Definition at line 50 of file StringEntryToDwarfStringPoolEntryMap.h.
References assert(), DwarfStringPoolEntries, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), and llvm::String.
Referenced by llvm::dwarf_linker::parallel::OutputSections::applyPatches(), and llvm::dwarf_linker::parallel::DWARFLinkerImpl::emitStringSections().
|
protected |
Definition at line 65 of file StringEntryToDwarfStringPoolEntryMap.h.
Referenced by add(), clear(), and getExistingEntry().
|
protected |
Definition at line 67 of file StringEntryToDwarfStringPoolEntryMap.h.
Referenced by add().