Lines Matching refs:normalizedFile
278 const NormalizedFile &normalizedFile, in processSymboledSection() argument
283 for (auto § : normalizedFile.sections) { in processSymboledSection()
291 appendSymbolsInSection(normalizedFile.globalSymbols, sectIndex, symbols); in processSymboledSection()
292 appendSymbolsInSection(normalizedFile.localSymbols, sectIndex, symbols); in processSymboledSection()
385 const NormalizedFile &normalizedFile, in processSection() argument
388 const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch); in processSection()
389 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in processSection()
410 return processSymboledSection(atomType, section, normalizedFile, file, in processSection()
494 const Section* findSectionCoveringAddress(const NormalizedFile &normalizedFile, in findSectionCoveringAddress() argument
496 for (const Section &s : normalizedFile.sections) { in findSectionCoveringAddress()
506 findAtomCoveringAddress(const NormalizedFile &normalizedFile, MachOFile &file, in findAtomCoveringAddress() argument
509 sect = findSectionCoveringAddress(normalizedFile, addr); in findAtomCoveringAddress()
524 const NormalizedFile &normalizedFile, in convertRelocs() argument
532 if (sectIndex > normalizedFile.sections.size()) in convertRelocs()
537 sect = findSectionCoveringAddress(normalizedFile, addr); in convertRelocs()
542 sect = &normalizedFile.sections[sectIndex-1]; in convertRelocs()
556 uint32_t numStabs = normalizedFile.stabsSymbols.size(); in convertRelocs()
557 uint32_t numLocal = normalizedFile.localSymbols.size(); in convertRelocs()
558 uint32_t numGlobal = normalizedFile.globalSymbols.size(); in convertRelocs()
559 uint32_t numUndef = normalizedFile.undefinedSymbols.size(); in convertRelocs()
562 sym = &normalizedFile.localSymbols[symbolIndex-numStabs]; in convertRelocs()
564 sym = &normalizedFile.globalSymbols[symbolIndex-numStabs-numLocal]; in convertRelocs()
566 sym = &normalizedFile.undefinedSymbols[symbolIndex-numStabs-numLocal- in convertRelocs()
575 if (sym->sect > normalizedFile.sections.size()) in convertRelocs()
578 const Section &symSection = normalizedFile.sections[sym->sect-1]; in convertRelocs()
600 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in convertRelocs()
713 const NormalizedFile &normalizedFile, in parseStabs() argument
716 if (normalizedFile.stabsSymbols.empty()) in parseStabs()
729 for (const auto &stabSym : normalizedFile.stabsSymbols) { in parseStabs()
739 currentAtom = findAtomCoveringAddress(normalizedFile, file, in parseStabs()
826 dataExtractorFromSection(const NormalizedFile &normalizedFile, in dataExtractorFromSection() argument
828 const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch); in dataExtractorFromSection()
829 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in dataExtractorFromSection()
856 getIndexedString(const NormalizedFile &normalizedFile, in getIndexedString() argument
866 dataExtractorFromSection(normalizedFile, stringsSection); in getIndexedString()
873 readCompUnit(const NormalizedFile &normalizedFile, in readCompUnit() argument
882 auto infoData = dataExtractorFromSection(normalizedFile, info); in readCompUnit()
901 auto abbrevData = dataExtractorFromSection(normalizedFile, abbrev); in readCompUnit()
918 if (auto eName = getIndexedString(normalizedFile, form, infoData, offset, in readCompUnit()
926 if (auto eName = getIndexedString(normalizedFile, form, infoData, offset, in readCompUnit()
941 const NormalizedFile &normalizedFile, bool copyRefs) { in parseDebugInfo() argument
948 for (auto &s : normalizedFile.sections) { in parseDebugInfo()
960 return parseStabs(file, normalizedFile, copyRefs); in parseDebugInfo()
973 if (auto tuOrErr = readCompUnit(normalizedFile, *debugInfo, *debugAbbrev, in parseDebugInfo()
1072 static llvm::Error processCIE(const NormalizedFile &normalizedFile, in processCIE() argument
1079 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in processCIE()
1102 const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch); in processCIE()
1159 func = findAtomCoveringAddress(normalizedFile, file, funcAddress, in processCIE()
1177 static llvm::Error processFDE(const NormalizedFile &normalizedFile, in processFDE() argument
1185 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in processFDE()
1186 const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch); in processFDE()
1242 auto *target = findAtomCoveringAddress(normalizedFile, file, in processFDE()
1321 llvm::Error addEHFrameReferences(const NormalizedFile &normalizedFile, in addEHFrameReferences() argument
1326 for (auto §ion : normalizedFile.sections) in addEHFrameReferences()
1348 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in addEHFrameReferences()
1350 ehFrameErr = processCIE(normalizedFile, file, handler, ehFrameSection, in addEHFrameReferences()
1353 ehFrameErr = processFDE(normalizedFile, file, handler, ehFrameSection, in addEHFrameReferences()
1361 const NormalizedFile &normalizedFile, in parseObjCImageInfo() argument
1376 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in parseObjCImageInfo()
1404 objectToAtoms(const NormalizedFile &normalizedFile, StringRef path, in objectToAtoms() argument
1407 if (auto ec = normalizedObjectToAtoms(file.get(), normalizedFile, copyRefs)) in objectToAtoms()
1413 dylibToAtoms(const NormalizedFile &normalizedFile, StringRef path, in dylibToAtoms() argument
1417 if (auto ec = normalizedDylibToAtoms(file.get(), normalizedFile, copyRefs)) in dylibToAtoms()
1433 const NormalizedFile &normalizedFile, in normalizedObjectToAtoms() argument
1437 bool scatterable = ((normalizedFile.flags & MH_SUBSECTIONS_VIA_SYMBOLS) != 0); in normalizedObjectToAtoms()
1440 for (auto § : normalizedFile.sections) { in normalizedObjectToAtoms()
1449 if (auto ec = parseObjCImageInfo(sect, normalizedFile, *file)) in normalizedObjectToAtoms()
1460 normalizedFile, *file, scatterable, copyRefs)) in normalizedObjectToAtoms()
1464 for (auto &sym : normalizedFile.undefinedSymbols) { in normalizedObjectToAtoms()
1477 = ArchHandler::create(normalizedFile.arch); in normalizedObjectToAtoms()
1478 for (auto § : normalizedFile.sections) { in normalizedObjectToAtoms()
1481 if (llvm::Error ec = convertRelocs(sect, normalizedFile, scatterable, in normalizedObjectToAtoms()
1495 if (auto ec = addEHFrameReferences(normalizedFile, *file, *handler)) in normalizedObjectToAtoms()
1501 for (const DataInCode &entry : normalizedFile.dataInCode) { in normalizedObjectToAtoms()
1503 const Section* s = findSectionCoveringAddress(normalizedFile, entry.offset); in normalizedObjectToAtoms()
1527 if (nextIndex < normalizedFile.dataInCode.size()) { in normalizedObjectToAtoms()
1528 const DataInCode &nextEntry = normalizedFile.dataInCode[nextIndex]; in normalizedObjectToAtoms()
1544 file->setFlags(normalizedFile.flags); in normalizedObjectToAtoms()
1545 file->setArch(normalizedFile.arch); in normalizedObjectToAtoms()
1546 file->setOS(normalizedFile.os); in normalizedObjectToAtoms()
1547 file->setMinVersion(normalizedFile.minOSverson); in normalizedObjectToAtoms()
1548 file->setMinVersionLoadCommandKind(normalizedFile.minOSVersionKind); in normalizedObjectToAtoms()
1555 if (auto err = parseDebugInfo(*file, normalizedFile, copyRefs)) in normalizedObjectToAtoms()
1563 const NormalizedFile &normalizedFile, in normalizedDylibToAtoms() argument
1565 file->setInstallName(normalizedFile.installName); in normalizedDylibToAtoms()
1566 file->setCompatVersion(normalizedFile.compatVersion); in normalizedDylibToAtoms()
1567 file->setCurrentVersion(normalizedFile.currentVersion); in normalizedDylibToAtoms()
1570 if (!normalizedFile.exportInfo.empty()) { in normalizedDylibToAtoms()
1572 for (const Export &exp : normalizedFile.exportInfo) { in normalizedDylibToAtoms()
1578 for (auto &sym : normalizedFile.globalSymbols) { in normalizedDylibToAtoms()
1585 for (const DependentDylib &dep : normalizedFile.dependentDylibs) { in normalizedDylibToAtoms()
1621 normalizedToAtoms(const NormalizedFile &normalizedFile, StringRef path, in normalizedToAtoms() argument
1623 switch (normalizedFile.fileType) { in normalizedToAtoms()
1626 return dylibToAtoms(normalizedFile, path, copyRefs); in normalizedToAtoms()
1628 return objectToAtoms(normalizedFile, path, copyRefs); in normalizedToAtoms()