|
LLVM
4.0.0
|
#include <PDBFile.h>
| PDBFile::PDBFile | ( | std::unique_ptr< msf::ReadableStream > | PdbFileBuffer, |
| BumpPtrAllocator & | Allocator | ||
| ) |
Definition at line 41 of file PDBFile.cpp.
|
overridedefault |
|
inline |
|
overridevirtual |
Implements llvm::msf::IMSFFile.
Definition at line 53 of file PDBFile.cpp.
References llvm::msf::SuperBlock::NumBlocks, and llvm::msf::MSFLayout::SB.
Referenced by parseFileHeaders().
|
overridevirtual |
Implements llvm::msf::IMSFFile.
Definition at line 92 of file PDBFile.cpp.
References llvm::msf::blockToOffset(), llvm::codeview::EC, and getBlockSize().
| uint32_t PDBFile::getBlockMapIndex | ( | ) | const |
Definition at line 61 of file PDBFile.cpp.
References llvm::msf::SuperBlock::BlockMapAddr, and llvm::msf::MSFLayout::SB.
| uint64_t PDBFile::getBlockMapOffset | ( | ) | const |
Definition at line 72 of file PDBFile.cpp.
References llvm::msf::SuperBlock::BlockMapAddr, llvm::msf::SuperBlock::BlockSize, and llvm::msf::MSFLayout::SB.
Referenced by parseFileHeaders().
|
overridevirtual |
Implements llvm::msf::IMSFFile.
Definition at line 47 of file PDBFile.cpp.
References llvm::msf::SuperBlock::BlockSize, and llvm::msf::MSFLayout::SB.
Referenced by getBlockData().
| ArrayRef< support::ulittle32_t > PDBFile::getDirectoryBlockArray | ( | ) | const |
Definition at line 220 of file PDBFile.cpp.
References llvm::msf::MSFLayout::DirectoryBlocks.
| uint32_t PDBFile::getFileSize | ( | ) | const |
Definition at line 90 of file PDBFile.cpp.
Referenced by parseStreamData().
| uint32_t PDBFile::getFreeBlockMapBlock | ( | ) | const |
Definition at line 49 of file PDBFile.cpp.
References llvm::msf::SuperBlock::FreeBlockMapBlock, and llvm::msf::MSFLayout::SB.
|
inline |
Definition at line 80 of file PDBFile.h.
Referenced by llvm::pdb::TpiStream::reload().
|
inline |
Definition at line 79 of file PDBFile.h.
Referenced by llvm::pdb::TpiStream::reload().
| uint32_t PDBFile::getNumDirectoryBlocks | ( | ) | const |
Definition at line 67 of file PDBFile.cpp.
References llvm::msf::SuperBlock::BlockSize, llvm::msf::bytesToBlocks(), llvm::msf::SuperBlock::NumDirectoryBytes, and llvm::msf::MSFLayout::SB.
Referenced by parseFileHeaders().
| uint32_t PDBFile::getNumDirectoryBytes | ( | ) | const |
Definition at line 57 of file PDBFile.cpp.
References llvm::msf::SuperBlock::NumDirectoryBytes, and llvm::msf::MSFLayout::SB.
|
overridevirtual |
Implements llvm::msf::IMSFFile.
Definition at line 77 of file PDBFile.cpp.
References llvm::ArrayRef< T >::size(), and llvm::msf::MSFLayout::StreamSizes.
Referenced by hasPDBDbiStream(), hasPDBGlobalsStream(), hasPDBInfoStream(), hasPDBIpiStream(), hasPDBPublicsStream(), hasPDBSymbolStream(), hasPDBTpiStream(), hasStringTable(), and llvm::pdb::TpiStream::reload().
Definition at line 253 of file PDBFile.cpp.
References llvm::codeview::EC, and llvm::pdb::StreamDBI.
Referenced by getPDBGlobalsStream(), getPDBPublicsStream(), getPDBSymbolStream(), hasPDBGlobalsStream(), hasPDBPublicsStream(), and hasPDBSymbolStream().
| Expected< GlobalsStream & > PDBFile::getPDBGlobalsStream | ( | ) |
Definition at line 224 of file PDBFile.cpp.
References llvm::codeview::EC, and getPDBDbiStream().
| Expected< InfoStream & > PDBFile::getPDBInfoStream | ( | ) |
Definition at line 241 of file PDBFile.cpp.
References llvm::codeview::EC, and llvm::pdb::StreamPDB.
Referenced by getStringTable(), hasStringTable(), and llvm::pdb::DbiStream::reload().
Definition at line 277 of file PDBFile.cpp.
References llvm::codeview::EC, and llvm::pdb::StreamIPI.
| Expected< PublicsStream & > PDBFile::getPDBPublicsStream | ( | ) |
Definition at line 289 of file PDBFile.cpp.
References llvm::codeview::EC, and getPDBDbiStream().
| Expected< SymbolStream & > PDBFile::getPDBSymbolStream | ( | ) |
Definition at line 307 of file PDBFile.cpp.
References llvm::codeview::EC, and getPDBDbiStream().
Referenced by llvm::pdb::PublicsStream::getSymbols().
Definition at line 265 of file PDBFile.cpp.
References llvm::codeview::EC, and llvm::pdb::StreamTPI.
|
overridevirtual |
Implements llvm::msf::IMSFFile.
Definition at line 86 of file PDBFile.cpp.
References llvm::msf::MSFLayout::StreamMap.
Implements llvm::msf::IMSFFile.
Definition at line 81 of file PDBFile.cpp.
References llvm::msf::MSFLayout::StreamSizes.
Referenced by parseStreamData().
|
inline |
Definition at line 75 of file PDBFile.h.
References llvm::msf::MSFLayout::StreamMap.
|
inline |
Definition at line 72 of file PDBFile.h.
References llvm::msf::MSFLayout::StreamSizes.
| Expected< NameHashTable & > PDBFile::getStringTable | ( | ) |
Definition at line 326 of file PDBFile.cpp.
References llvm::codeview::EC, getPDBInfoStream(), and N.
| uint32_t PDBFile::getUnknown1 | ( | ) | const |
Definition at line 65 of file PDBFile.cpp.
References llvm::msf::MSFLayout::SB, and llvm::msf::SuperBlock::Unknown1.
| bool PDBFile::hasPDBDbiStream | ( | ) | const |
Definition at line 348 of file PDBFile.cpp.
References getNumStreams(), and llvm::pdb::StreamDBI.
| bool PDBFile::hasPDBGlobalsStream | ( | ) |
Definition at line 350 of file PDBFile.cpp.
References getNumStreams(), and getPDBDbiStream().
| bool PDBFile::hasPDBInfoStream | ( | ) |
Definition at line 356 of file PDBFile.cpp.
References getNumStreams(), and llvm::pdb::StreamPDB.
| bool PDBFile::hasPDBIpiStream | ( | ) | const |
Definition at line 358 of file PDBFile.cpp.
References getNumStreams(), and llvm::pdb::StreamIPI.
| bool PDBFile::hasPDBPublicsStream | ( | ) |
Definition at line 360 of file PDBFile.cpp.
References getNumStreams(), and getPDBDbiStream().
| bool PDBFile::hasPDBSymbolStream | ( | ) |
Definition at line 366 of file PDBFile.cpp.
References getNumStreams(), and getPDBDbiStream().
| bool PDBFile::hasPDBTpiStream | ( | ) | const |
Definition at line 372 of file PDBFile.cpp.
References getNumStreams(), and llvm::pdb::StreamTPI.
| bool PDBFile::hasStringTable | ( | ) |
Definition at line 374 of file PDBFile.cpp.
References getNumStreams(), and getPDBInfoStream().
| Error PDBFile::parseFileHeaders | ( | ) |
Definition at line 108 of file PDBFile.cpp.
References llvm::msf::SuperBlock::BlockSize, llvm::codeview::Byte, llvm::consumeError(), llvm::pdb::corrupt_file, llvm::msf::MSFLayout::DirectoryBlocks, llvm::codeview::EC, llvm::msf::MSFLayout::FreePageMap, getBlockCount(), getBlockMapOffset(), llvm::msf::getFullFpmByteSize(), getNumDirectoryBlocks(), I, fuzzer::min(), llvm::msf::SuperBlock::NumBlocks, llvm::msf::StreamReader::readArray(), llvm::msf::StreamReader::readBytes(), llvm::msf::StreamReader::readObject(), llvm::BitVector::resize(), llvm::msf::MSFLayout::SB, SB, llvm::msf::StreamReader::setOffset(), llvm::Error::success(), and llvm::msf::validateSuperBlock().
| Error PDBFile::parseStreamData | ( | ) |
Definition at line 168 of file PDBFile.cpp.
References assert(), llvm::pdb::Block, llvm::msf::SuperBlock::BlockSize, llvm::msf::StreamReader::bytesRemaining(), llvm::msf::bytesToBlocks(), llvm::pdb::corrupt_file, llvm::codeview::EC, getFileSize(), getStreamByteSize(), I, llvm::msf::StreamReader::readArray(), llvm::msf::StreamReader::readInteger(), llvm::msf::MSFLayout::SB, llvm::msf::MSFLayout::StreamMap, llvm::msf::MSFLayout::StreamSizes, and llvm::Error::success().
|
overridevirtual |
Implements llvm::msf::IMSFFile.
Definition at line 102 of file PDBFile.cpp.
References llvm::pdb::not_writable.
1.8.6