LLVM
8.0.1
|
#include "llvm/DebugInfo/PDB/Native/SymbolCache.h"
Definition at line 28 of file SymbolCache.h.
SymbolCache::SymbolCache | ( | NativeSession & | Session, |
DbiStream * | Dbi | ||
) |
Definition at line 64 of file SymbolCache.cpp.
References llvm::pdb::DbiModuleList::getModuleCount(), and llvm::pdb::DbiStream::modules().
std::unique_ptr< IPDBEnumSymbols > SymbolCache::createGlobalsEnumerator | ( | codeview::SymbolKind | Kind | ) |
Definition at line 91 of file SymbolCache.cpp.
References assert(), llvm::sys::path::begin(), BuiltinTypes, llvm::consumeError(), llvm::codeview::Direct, llvm::codeview::EC, llvm::sys::path::end(), llvm::pdb::Enum, llvm::find_if(), findSymbolByTypeIndex(), llvm::codeview::TypeIndex::getSimpleKind(), llvm::codeview::TypeIndex::getSimpleMode(), llvm::pdb::NativeRawSymbol::getSymTag(), llvm::codeview::TypeIndex::isSimple(), BuiltinTypeEntry::Kind, Kind, llvm::codeview::ModifierRecord::ModifiedType, llvm::codeview::ModifierRecord::Modifiers, and llvm::pdb::UDT.
Referenced by createSymbol(), and llvm::pdb::NativeExeSymbol::findChildren().
|
inline |
Definition at line 86 of file SymbolCache.h.
References llvm::AMDGPU::HSAMD::Kernel::Key::Args, createGlobalsEnumerator(), createTypeEnumerator(), findSymbolByTypeIndex(), and Kind.
Referenced by llvm::pdb::NativeSession::getFrameData().
std::unique_ptr< IPDBEnumSymbols > SymbolCache::createTypeEnumerator | ( | codeview::TypeLeafKind | Kind | ) |
Definition at line 74 of file SymbolCache.cpp.
Referenced by createSymbol(), and llvm::pdb::NativeExeSymbol::findChildren().
std::unique_ptr< IPDBEnumSymbols > SymbolCache::createTypeEnumerator | ( | std::vector< codeview::TypeLeafKind > | Kinds | ) |
Definition at line 79 of file SymbolCache.cpp.
References llvm::consumeError(), llvm::pdb::NativeSession::getPDBFile(), and llvm::pdb::PDBFile::getPDBTpiStream().
SymIndexId SymbolCache::findSymbolByTypeIndex | ( | codeview::TypeIndex | TI | ) |
Definition at line 142 of file SymbolCache.cpp.
References assert(), llvm::consumeError(), llvm::pdb::NativeSession::getPDBFile(), llvm::pdb::PDBFile::getPDBTpiStream(), llvm::codeview::LazyRandomTypeCollection::getType(), if(), llvm::codeview::TypeIndex::isSimple(), llvm::codeview::isUdtForwardRef(), llvm::codeview::CVRecord< Kind >::kind(), llvm::pdb::None, and llvm::Expected< T >::takeError().
Referenced by createGlobalsEnumerator(), createSymbol(), llvm::pdb::NativeTypeArray::getArrayIndexTypeId(), llvm::pdb::NativeTypeEnum::getBuiltinType(), llvm::pdb::NativeEnumTypes::getChildAtIndex(), llvm::pdb::NativeTypePointer::getClassParentId(), llvm::pdb::NativeTypeEnum::getLength(), llvm::pdb::NativeTypeTypedef::getTypeId(), llvm::pdb::NativeTypeArray::getTypeId(), llvm::pdb::NativeTypePointer::getTypeId(), llvm::pdb::NativeTypeFunctionSig::getTypeId(), llvm::pdb::NativeTypeEnum::getTypeId(), llvm::pdb::NativeTypeUDT::getVirtualTableShapeId(), and llvm::pdb::NativeTypeFunctionSig::initialize().
NativeRawSymbol & SymbolCache::getNativeSymbolById | ( | SymIndexId | SymbolId | ) | const |
Definition at line 247 of file SymbolCache.cpp.
Referenced by llvm::pdb::NativeTypeArray::getCount(), llvm::pdb::NativeSession::getNativeGlobalScope(), getNativeSymbolById(), getOrCreateFieldListMember(), and llvm::pdb::NativeTypeEnum::getUnderlyingBuiltinType().
|
inline |
Definition at line 140 of file SymbolCache.h.
References getNativeSymbolById().
uint32_t SymbolCache::getNumCompilands | ( | ) | const |
Definition at line 251 of file SymbolCache.cpp.
References llvm::pdb::DbiModuleList::getModuleCount(), and llvm::pdb::DbiStream::modules().
Referenced by llvm::pdb::NativeEnumModules::getChildCount(), and getOrCreateFieldListMember().
std::unique_ptr< PDBSymbolCompiland > SymbolCache::getOrCreateCompiland | ( | uint32_t | Index | ) |
Definition at line 285 of file SymbolCache.cpp.
References llvm::pdb::IPDBSession::getConcreteSymbolById(), llvm::pdb::DbiModuleList::getModuleDescriptor(), and llvm::pdb::DbiStream::modules().
Referenced by llvm::pdb::NativeEnumModules::getChildAtIndex(), and getOrCreateFieldListMember().
|
inline |
SymIndexId SymbolCache::getOrCreateGlobalSymbolByOffset | ( | uint32_t | Offset | ) |
Definition at line 258 of file SymbolCache.cpp.
References assert(), llvm::cantFail(), llvm::pdb::NativeSession::getPDBFile(), llvm::pdb::PDBFile::getPDBSymbolStream(), and llvm::codeview::CVRecord< Kind >::kind().
Referenced by llvm::pdb::NativeEnumGlobals::getChildAtIndex(), and getOrCreateFieldListMember().
std::unique_ptr< PDBSymbol > SymbolCache::getSymbolById | ( | SymIndexId | SymbolId | ) | const |
Definition at line 231 of file SymbolCache.cpp.
References assert(), and llvm::pdb::PDBSymbol::create().
Referenced by llvm::pdb::NativeEnumGlobals::getChildAtIndex(), llvm::pdb::NativeEnumTypes::getChildAtIndex(), getOrCreateFieldListMember(), and llvm::pdb::NativeSession::getSymbolById().