Lines Matching refs:File

32 ExplainOutputStyle::ExplainOutputStyle(InputFile &File, uint64_t FileOffset)  in ExplainOutputStyle()  argument
33 : File(File), FileOffset(FileOffset), P(2, false, outs()) {} in ExplainOutputStyle()
37 File.getFilePath()); in dump()
39 if (File.isPdb()) in dump()
68 llvm::make_unique<BinaryByteStream>(File.unknown().getBuffer(), in explainBinaryFile()
92 return FileOffset / File.pdb().getBlockSize(); in pdbBlockIndex()
96 uint64_t BlockStart = pdbBlockIndex() * File.pdb().getBlockSize(); in pdbBlockOffset()
106 return ((pdbBlockIndex() - 1) % File.pdb().getBlockSize() == 0); in isPdbFpm1()
109 return ((pdbBlockIndex() - 2) % File.pdb().getBlockSize() == 0); in isPdbFpm2()
117 return pdbBlockIndex() == File.pdb().getBlockMapIndex(); in isPdbBlockMapBlock()
121 const auto &Layout = File.pdb().getMsfLayout(); in isPdbStreamDirectoryBlock()
126 const auto &Layout = File.pdb().getMsfLayout(); in getPdbBlockStreamIndex()
136 if (FileOffset >= File.pdb().getFileSize()) { in explainPdbBlockStatus()
138 FileOffset, File.pdb().getFileSize()); in explainPdbBlockStatus()
144 bool IsFree = File.pdb().getMsfLayout().FreePageMap[pdbBlockIndex()]; in explainPdbBlockStatus()
160 uint32_t(File.pdb().getMsfLayout().SB->BlockSize)); in explainPdbSuperBlockOffset()
164 uint32_t(File.pdb().getMsfLayout().SB->FreeBlockMapBlock)); in explainPdbSuperBlockOffset()
168 uint32_t(File.pdb().getMsfLayout().SB->NumBlocks)); in explainPdbSuperBlockOffset()
172 uint32_t(File.pdb().getMsfLayout().SB->NumDirectoryBytes)); in explainPdbSuperBlockOffset()
176 uint32_t(File.pdb().getMsfLayout().SB->Unknown1)); in explainPdbSuperBlockOffset()
180 uint32_t(File.pdb().getMsfLayout().SB->BlockMapAddr)); in explainPdbSuperBlockOffset()
199 const MSFLayout &Layout = File.pdb().getMsfLayout(); in explainPdbFpmBlockOffset()
205 uint32_t FpmChunk = pdbBlockIndex() / File.pdb().getBlockSize(); in explainPdbFpmBlockOffset()
211 8 * (FpmChunk * File.pdb().getBlockSize() + pdbBlockOffset()); in explainPdbFpmBlockOffset()
212 if (DescribedBlockStart > File.pdb().getBlockCount()) { in explainPdbFpmBlockOffset()
220 cantFail(File.pdb().getMsfBuffer().readBytes(FileOffset, 1, Bytes)); in explainPdbFpmBlockOffset()
226 uint64_t BlockMapOffset = File.pdb().getBlockMapOffset(); in explainPdbBlockMapOffset()
245 discoverStreamPurposes(File.pdb(), Streams); in explainPdbStreamOffset()
249 const auto &Layout = File.pdb().getStreamLayout(Stream); in explainPdbStreamOffset()
251 getOffsetInStream(Layout.Blocks, FileOffset, File.pdb().getBlockSize()); in explainPdbStreamOffset()
257 DbiStream &Dbi = cantFail(File.pdb().getPDBDbiStream()); in explainPdbStreamOffset()
262 InfoStream &Info = cantFail(File.pdb().getPDBInfoStream()); in explainPdbStreamOffset()
276 auto DirectoryBlocks = File.pdb().getDirectoryBlockArray(); in explainPdbStreamDirectoryOffset()
277 const auto &Layout = File.pdb().getMsfLayout(); in explainPdbStreamDirectoryOffset()
279 getOffsetInStream(DirectoryBlocks, FileOffset, File.pdb().getBlockSize()); in explainPdbStreamDirectoryOffset()