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()
384 const NormalizedFile &normalizedFile, in processSection() argument
387 const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch); in processSection()
388 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in processSection()
409 return processSymboledSection(atomType, section, normalizedFile, file, in processSection()
493 const Section* findSectionCoveringAddress(const NormalizedFile &normalizedFile, in findSectionCoveringAddress() argument
495 for (const Section &s : normalizedFile.sections) { in findSectionCoveringAddress()
505 findAtomCoveringAddress(const NormalizedFile &normalizedFile, MachOFile &file, in findAtomCoveringAddress() argument
508 sect = findSectionCoveringAddress(normalizedFile, addr); in findAtomCoveringAddress()
523 const NormalizedFile &normalizedFile, in convertRelocs() argument
531 if (sectIndex > normalizedFile.sections.size()) in convertRelocs()
536 sect = findSectionCoveringAddress(normalizedFile, addr); in convertRelocs()
541 sect = &normalizedFile.sections[sectIndex-1]; in convertRelocs()
555 uint32_t numStabs = normalizedFile.stabsSymbols.size(); in convertRelocs()
556 uint32_t numLocal = normalizedFile.localSymbols.size(); in convertRelocs()
557 uint32_t numGlobal = normalizedFile.globalSymbols.size(); in convertRelocs()
558 uint32_t numUndef = normalizedFile.undefinedSymbols.size(); in convertRelocs()
561 sym = &normalizedFile.localSymbols[symbolIndex-numStabs]; in convertRelocs()
563 sym = &normalizedFile.globalSymbols[symbolIndex-numStabs-numLocal]; in convertRelocs()
565 sym = &normalizedFile.undefinedSymbols[symbolIndex-numStabs-numLocal- in convertRelocs()
574 if (sym->sect > normalizedFile.sections.size()) in convertRelocs()
577 const Section &symSection = normalizedFile.sections[sym->sect-1]; in convertRelocs()
599 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in convertRelocs()
712 const NormalizedFile &normalizedFile, in parseStabs() argument
715 if (normalizedFile.stabsSymbols.empty()) in parseStabs()
728 for (const auto &stabSym : normalizedFile.stabsSymbols) { in parseStabs()
738 currentAtom = findAtomCoveringAddress(normalizedFile, file, in parseStabs()
825 dataExtractorFromSection(const NormalizedFile &normalizedFile, in dataExtractorFromSection() argument
827 const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch); in dataExtractorFromSection()
828 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in dataExtractorFromSection()
855 getIndexedString(const NormalizedFile &normalizedFile, in getIndexedString() argument
865 dataExtractorFromSection(normalizedFile, stringsSection); in getIndexedString()
872 readCompUnit(const NormalizedFile &normalizedFile, in readCompUnit() argument
881 auto infoData = dataExtractorFromSection(normalizedFile, info); in readCompUnit()
900 auto abbrevData = dataExtractorFromSection(normalizedFile, abbrev); in readCompUnit()
917 if (auto eName = getIndexedString(normalizedFile, form, infoData, offset, in readCompUnit()
925 if (auto eName = getIndexedString(normalizedFile, form, infoData, offset, in readCompUnit()
940 const NormalizedFile &normalizedFile, bool copyRefs) { in parseDebugInfo() argument
947 for (auto &s : normalizedFile.sections) { in parseDebugInfo()
959 return parseStabs(file, normalizedFile, copyRefs); in parseDebugInfo()
972 if (auto tuOrErr = readCompUnit(normalizedFile, *debugInfo, *debugAbbrev, in parseDebugInfo()
1071 static llvm::Error processCIE(const NormalizedFile &normalizedFile, in processCIE() argument
1078 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in processCIE()
1101 const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch); in processCIE()
1158 func = findAtomCoveringAddress(normalizedFile, file, funcAddress, in processCIE()
1176 static llvm::Error processFDE(const NormalizedFile &normalizedFile, in processFDE() argument
1184 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in processFDE()
1185 const bool is64 = MachOLinkingContext::is64Bit(normalizedFile.arch); in processFDE()
1241 auto *target = findAtomCoveringAddress(normalizedFile, file, in processFDE()
1320 llvm::Error addEHFrameReferences(const NormalizedFile &normalizedFile, in addEHFrameReferences() argument
1325 for (auto §ion : normalizedFile.sections) in addEHFrameReferences()
1347 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in addEHFrameReferences()
1349 ehFrameErr = processCIE(normalizedFile, file, handler, ehFrameSection, in addEHFrameReferences()
1352 ehFrameErr = processFDE(normalizedFile, file, handler, ehFrameSection, in addEHFrameReferences()
1360 const NormalizedFile &normalizedFile, in parseObjCImageInfo() argument
1375 const bool isBig = MachOLinkingContext::isBigEndian(normalizedFile.arch); in parseObjCImageInfo()
1403 objectToAtoms(const NormalizedFile &normalizedFile, StringRef path, in objectToAtoms() argument
1406 if (auto ec = normalizedObjectToAtoms(file.get(), normalizedFile, copyRefs)) in objectToAtoms()
1412 dylibToAtoms(const NormalizedFile &normalizedFile, StringRef path, in dylibToAtoms() argument
1416 if (auto ec = normalizedDylibToAtoms(file.get(), normalizedFile, copyRefs)) in dylibToAtoms()
1432 const NormalizedFile &normalizedFile, in normalizedObjectToAtoms() argument
1436 bool scatterable = ((normalizedFile.flags & MH_SUBSECTIONS_VIA_SYMBOLS) != 0); in normalizedObjectToAtoms()
1439 for (auto § : normalizedFile.sections) { in normalizedObjectToAtoms()
1448 if (auto ec = parseObjCImageInfo(sect, normalizedFile, *file)) in normalizedObjectToAtoms()
1459 normalizedFile, *file, scatterable, copyRefs)) in normalizedObjectToAtoms()
1463 for (auto &sym : normalizedFile.undefinedSymbols) { in normalizedObjectToAtoms()
1476 = ArchHandler::create(normalizedFile.arch); in normalizedObjectToAtoms()
1477 for (auto § : normalizedFile.sections) { in normalizedObjectToAtoms()
1480 if (llvm::Error ec = convertRelocs(sect, normalizedFile, scatterable, in normalizedObjectToAtoms()
1494 if (auto ec = addEHFrameReferences(normalizedFile, *file, *handler)) in normalizedObjectToAtoms()
1500 for (const DataInCode &entry : normalizedFile.dataInCode) { in normalizedObjectToAtoms()
1502 const Section* s = findSectionCoveringAddress(normalizedFile, entry.offset); in normalizedObjectToAtoms()
1526 if (nextIndex < normalizedFile.dataInCode.size()) { in normalizedObjectToAtoms()
1527 const DataInCode &nextEntry = normalizedFile.dataInCode[nextIndex]; in normalizedObjectToAtoms()
1543 file->setFlags(normalizedFile.flags); in normalizedObjectToAtoms()
1544 file->setArch(normalizedFile.arch); in normalizedObjectToAtoms()
1545 file->setOS(normalizedFile.os); in normalizedObjectToAtoms()
1546 file->setMinVersion(normalizedFile.minOSverson); in normalizedObjectToAtoms()
1547 file->setMinVersionLoadCommandKind(normalizedFile.minOSVersionKind); in normalizedObjectToAtoms()
1554 if (auto err = parseDebugInfo(*file, normalizedFile, copyRefs)) in normalizedObjectToAtoms()
1562 const NormalizedFile &normalizedFile, in normalizedDylibToAtoms() argument
1564 file->setInstallName(normalizedFile.installName); in normalizedDylibToAtoms()
1565 file->setCompatVersion(normalizedFile.compatVersion); in normalizedDylibToAtoms()
1566 file->setCurrentVersion(normalizedFile.currentVersion); in normalizedDylibToAtoms()
1569 if (!normalizedFile.exportInfo.empty()) { in normalizedDylibToAtoms()
1571 for (const Export &exp : normalizedFile.exportInfo) { in normalizedDylibToAtoms()
1577 for (auto &sym : normalizedFile.globalSymbols) { in normalizedDylibToAtoms()
1584 for (const DependentDylib &dep : normalizedFile.dependentDylibs) { in normalizedDylibToAtoms()
1620 normalizedToAtoms(const NormalizedFile &normalizedFile, StringRef path, in normalizedToAtoms() argument
1622 switch (normalizedFile.fileType) { in normalizedToAtoms()
1625 return dylibToAtoms(normalizedFile, path, copyRefs); in normalizedToAtoms()
1627 return objectToAtoms(normalizedFile, path, copyRefs); in normalizedToAtoms()