Lines Matching full:auto
37 auto I = partition_point(Container, [=](const Triple &CT) { in emplace()
50 auto getOSVersionStr = [](uint32_t V) { in constructTriples()
57 auto getOSVersion = [&](const MachOObjectFile::LoadCommandInfo &cmd) { in constructTriples()
58 auto Vers = Obj->getVersionMinLoadCommand(cmd); in constructTriples()
64 auto Arch = getArchitectureName(ArchT); in constructTriples()
66 for (const auto &cmd : Obj->load_commands()) { in constructTriples()
146 auto H = Obj->getHeader(); in readMachOHeader()
147 auto &BA = Slice.getBinaryAttrs(); in readMachOHeader()
168 for (const auto &LCI : Obj->load_commands()) { in readMachOHeader()
171 auto DLLC = Obj->getDylibIDLoadCommand(LCI); in readMachOHeader()
178 auto DLLC = Obj->getDylibIDLoadCommand(LCI); in readMachOHeader()
184 auto SFC = Obj->getSubFrameworkCommand(LCI); in readMachOHeader()
189 auto SCLC = Obj->getSubClientCommand(LCI); in readMachOHeader()
194 auto UUIDLC = Obj->getUuidCommand(LCI); in readMachOHeader()
206 auto RPLC = Obj->getRpathCommand(LCI); in readMachOHeader()
211 auto SSILC = Obj->getLinkeditDataLoadCommand(LCI); in readMachOHeader()
221 for (auto &Sect : Obj->sections()) { in readMachOHeader()
222 auto SectName = Sect.getName(); in readMachOHeader()
228 auto Content = Sect.getContents(); in readMachOHeader()
235 auto *p = in readMachOHeader()
239 auto *p = in readMachOHeader()
252 auto parseExport = [](const auto ExportFlags, in readSymbols()
253 auto Addr) -> std::tuple<SymbolFlags, RecordLinkage> { in readSymbols()
277 for (auto &Sym : Obj->exports(Err)) { in readSymbols()
278 auto [Flags, Linkage] = parseExport(Sym.flags(), Sym.address()); in readSymbols()
283 for (const auto &Sym : Obj->symbols()) { in readSymbols()
284 auto FlagsOrErr = Sym.getFlags(); in readSymbols()
287 auto Flags = *FlagsOrErr; in readSymbols()
289 auto NameOrErr = Sym.getName(); in readSymbols()
292 auto Name = *NameOrErr; in readSymbols()
305 auto Exp = Exports.find(Name); in readSymbols()
318 auto TypeOrErr = Sym.getType(); in readSymbols()
321 auto Type = *TypeOrErr; in readSymbols()
343 if (auto Err = readMachOHeader(Obj, Slice)) in load()
347 if (auto Err = readSymbols(Obj, Slice, Opt)) in load()
357 auto BinOrErr = createBinary(Buffer); in readFile()
362 if (auto *Obj = dyn_cast<MachOObjectFile>(&Bin)) { in readFile()
363 const auto Arch = getArchitectureFromCpuType(Obj->getHeader().cputype, in readFile()
368 auto Triples = constructTriples(Obj, Arch); in readFile()
369 for (const auto &T : Triples) { in readFile()
373 if (auto Err = load(Obj, *Results.back(), Opt, Arch)) in readFile()
383 auto *UB = cast<MachOUniversalBinary>(&Bin); in readFile()
385 for (auto OI = UB->begin_objects(), OE = UB->end_objects(); OI != OE; ++OI) { in readFile()
387 auto Arch = in readFile()
397 auto ObjOrErr = OI->getAsObjectFile(); in readFile()
405 auto &Obj = *ObjOrErr.get(); in readFile()
412 for (const auto &T : constructTriples(&Obj, Arch)) { in readFile()
414 if (auto Err = load(&Obj, *Results.back(), Opt, Arch)) in readFile()
430 auto SlicesOrErr = readFile(Buffer, Options); in get()
443 for (const auto &Symbol : Obj.symbols()) { in accumulateLocs()
460 auto TypeOrErr = Symbol.getType(); in accumulateLocs()
467 auto *DWARFCU = IsCode ? DiCtx->getCompileUnitForCodeAddress(Address) in accumulateLocs()
478 auto NameOrErr = Symbol.getName(); in accumulateLocs()
483 auto Name = *NameOrErr; in accumulateLocs()
484 auto Sym = parseSymbol(Name); in accumulateLocs()
497 auto DSYMsOrErr = MachOObjectFile::findDsymObjectMembers(DSYM); in accumulateSourceLocFromDSYM()
506 auto BufOrErr = MemoryBuffer::getFile(Path); in accumulateSourceLocFromDSYM()
507 if (auto Err = BufOrErr.getError()) in accumulateSourceLocFromDSYM()
510 auto BinOrErr = createBinary(*BufOrErr.get()); in accumulateSourceLocFromDSYM()
516 if (auto *Single = dyn_cast<MachOObjectFile>(BinOrErr->get())) { in accumulateSourceLocFromDSYM()
517 auto DiCtx = DWARFContext::create( in accumulateSourceLocFromDSYM()
524 if (auto *Fat = dyn_cast<MachOUniversalBinary>(BinOrErr->get())) { in accumulateSourceLocFromDSYM()
525 auto ObjForArch = Fat->getObjectForArch(getArchitectureName(T.Arch)); in accumulateSourceLocFromDSYM()
530 auto MachOOrErr = ObjForArch->getAsObjectFile(); in accumulateSourceLocFromDSYM()
535 auto &Obj = **MachOOrErr; in accumulateSourceLocFromDSYM()
536 auto DiCtx = DWARFContext::create( in accumulateSourceLocFromDSYM()