Lines Matching defs:OF
1054 lookupSections(ObjectFile &OF, InstrProfSectKind IPSK) {
1055 auto ObjFormat = OF.getTripleObjectFormat();
1061 bool IsCOFF = isa<COFFObjectFile>(OF);
1068 for (const auto &Section : OF.sections()) {
1091 lookupAllocatableSection(ObjectFile &OF, InstrProfSectKind IPSK) {
1093 if (auto *WOF = dyn_cast<WasmObjectFile>(&OF)) {
1095 auto ObjFormat = OF.getTripleObjectFormat();
1120 auto Sections = lookupSections(OF, IPSK);
1141 std::unique_ptr<ObjectFile> OF;
1148 OF = std::move(ObjectFileOrErr.get());
1151 OF.reset(cast<ObjectFile>(Bin.release()));
1153 if (!Arch.empty() && OF->getArch() != Triple(Arch).getArch())
1161 uint8_t BytesInAddress = OF->getBytesInAddress();
1163 OF->isLittleEndian() ? llvm::endianness::little : llvm::endianness::big;
1169 auto NamesSection = lookupAllocatableSection(*OF, IPSK_name);
1172 NamesSection = lookupAllocatableSection(*OF, IPSK_covname);
1183 auto CoverageSection = lookupSections(*OF, IPSK_covmap);
1205 auto CoverageRecordsSections = lookupSections(*OF, IPSK_covfun);
1249 *BinaryID = getBuildID(OF.get());