Lines Matching refs:File
116 void addObjFile(ObjFile *File, CVIndexMap *ExternIndexMap = nullptr);
129 Expected<const CVIndexMap &> mergeDebugT(ObjFile *File,
133 Expected<const CVIndexMap &> maybeMergeTypeServerPDB(ObjFile *File,
140 mergeInPrecompHeaderObj(ObjFile *File, const CVType &FirstType,
152 Expected<const CVIndexMap &> aquirePrecompObj(ObjFile *File,
159 void mergeSymbolRecords(ObjFile *File, const CVIndexMap &IndexMap,
232 ObjFile &File; member in __anon97f256dd0111::DebugSHandler
265 DebugSHandler(PDBLinker &Linker, ObjFile &File, const CVIndexMap &IndexMap) in DebugSHandler() argument
266 : Linker(Linker), File(File), IndexMap(IndexMap) {} in DebugSHandler()
330 static ArrayRef<uint8_t> getDebugSection(ObjFile *File, StringRef SecName) { in getDebugSection() argument
331 if (SectionChunk *Sec = findByName(File->getDebugChunks(), SecName)) in getDebugSection()
352 static Optional<ArrayRef<uint8_t>> getDebugH(ObjFile *File) { in getDebugH() argument
353 SectionChunk *Sec = findByName(File->getDebugChunks(), ".debug$H"); in getDebugH()
390 static uint32_t extractPCHSignature(ObjFile *File) { in extractPCHSignature() argument
391 auto DbgIt = find_if(File->getDebugChunks(), [](SectionChunk *C) { in extractPCHSignature()
420 PDBLinker::mergeDebugT(ObjFile *File, CVIndexMap *ObjectIndexMap) { in mergeDebugT() argument
425 ArrayRef<uint8_t> Data = getDebugSection(File, ".debug$T"); in mergeDebugT()
429 Data = getDebugSection(File, ".debug$P"); in mergeDebugT()
438 uint32_t PCHSignature = extractPCHSignature(File); in mergeDebugT()
441 File->getName() + ")"); in mergeDebugT()
453 File->getName() + ")"); in mergeDebugT()
472 return maybeMergeTypeServerPDB(File, *FirstType); in mergeDebugT()
478 auto E = mergeInPrecompHeaderObj(File, *FirstType, ObjectIndexMap); in mergeDebugT()
494 if (Optional<ArrayRef<uint8_t>> DebugH = getDebugH(File)) in mergeDebugT()
503 File->PCHSignature)) in mergeDebugT()
509 Types, File->PCHSignature)) in mergeDebugT()
538 pdb::PDBFile &File = NS->getPDBFile(); in tryToLoadPDB() local
539 auto ExpectedInfo = File.getPDBInfoStream(); in tryToLoadPDB()
554 PDBLinker::maybeMergeTypeServerPDB(ObjFile *File, const CVType &FirstType) { in maybeMergeTypeServerPDB() argument
587 !File->ParentName.empty() ? File->ParentName : File->getName(); in maybeMergeTypeServerPDB()
668 PDBLinker::mergeInPrecompHeaderObj(ObjFile *File, const CVType &FirstType, in mergeInPrecompHeaderObj() argument
675 auto E = aquirePrecompObj(File, Precomp); in mergeInPrecompHeaderObj()
728 PDBLinker::aquirePrecompObj(ObjFile *File, PrecompRecord Precomp) { in aquirePrecompObj() argument
773 static void remapTypesInSymbolRecord(ObjFile *File, SymbolKind SymKind, in remapTypesInSymbolRecord() argument
795 File->getName() + " with bad " + (IsItemIndex ? "item" : "type") + in remapTypesInSymbolRecord()
931 uint32_t CurOffset, ObjFile *File) { in scopeStackClose() argument
933 warn("symbol scopes are not balanced in " + File->getName()); in scopeStackClose()
1014 void PDBLinker::mergeSymbolRecords(ObjFile *File, const CVIndexMap &IndexMap, in mergeSymbolRecords() argument
1037 warn("corrupt symbol records in " + File->getName()); in mergeSymbolRecords()
1054 unsigned CurSymOffset = File->ModuleDBI->getNextSymbolOffset(); in mergeSymbolRecords()
1080 remapTypesInSymbolRecord(File, Sym.kind(), RecordBytes, IndexMap, in mergeSymbolRecords()
1096 scopeStackClose(Scopes, CurSymOffset, File); in mergeSymbolRecords()
1104 File->ModuleDBI->getModuleIndex(), CurSymOffset, Sym); in mergeSymbolRecords()
1114 File->ModuleDBI->addSymbolsInBulk(BulkSymbols); in mergeSymbolRecords()
1123 File->ModuleDBI->addSymbolsInBulk(BulkSymbols); in mergeSymbolRecords()
1146 SC.Imod = SecChunk->File->ModuleDBI->getModuleIndex(); in createSectionContrib()
1202 File.ModuleDBI->addDebugSubsection(SS); in handleDebugS()
1214 Linker.mergeSymbolRecords(&File, IndexMap, StringTableReferences, in handleDebugS()
1267 *File.ModuleDBI, FileName)); in finish()
1270 File.ModuleDBI->addDebugSubsection(std::move(NewChecksums)); in finish()
1273 void PDBLinker::addObjFile(ObjFile *File, CVIndexMap *ExternIndexMap) { in addObjFile() argument
1274 if (File->wasProcessedForPDB()) in addObjFile()
1280 bool InArchive = !File->ParentName.empty(); in addObjFile()
1281 SmallString<128> Path = InArchive ? File->ParentName : File->getName(); in addObjFile()
1283 StringRef Name = InArchive ? File->getName() : StringRef(Path); in addObjFile()
1286 File->ModuleDBI = &ExitOnErr(DbiBuilder.addModuleInfo(Name)); in addObjFile()
1287 File->ModuleDBI->setObjFileName(Path); in addObjFile()
1289 auto Chunks = File->getChunks(); in addObjFile()
1290 uint32_t Modi = File->ModuleDBI->getModuleIndex(); in addObjFile()
1296 File->ModuleDBI->setFirstSectionContrib(SC); in addObjFile()
1306 mergeDebugT(File, ExternIndexMap ? ExternIndexMap : &ObjectIndexMap); in addObjFile()
1323 DebugSHandler DSH(*this, *File, *IndexMapResult); in addObjFile()
1325 for (SectionChunk *DebugChunk : File->getDebugChunks()) { in addObjFile()
1376 for (ObjFile *File : ObjFile::Instances) in addObjectsToPDB()
1377 addObjFile(File); in addObjectsToPDB()
1411 for (StringRef File : Config->NatvisFiles) { in addNatvisFiles() local
1413 MemoryBuffer::getFile(File); in addNatvisFiles()
1415 warn("Cannot open input file: " + File); in addNatvisFiles()
1418 Builder.addInjectedSource(File, std::move(*DataOrErr)); in addNatvisFiles()
1663 for (SectionChunk *DbgC : C->File->getDebugChunks()) { in findLineTable()
1674 C->File->getSymbols()[R.SymbolTableIndex])) in findLineTable()