Lines Matching refs:atom
56 auto *atom = in addDefinedAtom() local
59 addAtomForSection(inSection, atom, sectionOffset); in addDefinedAtom()
79 auto *atom = in addDefinedAtomInCustomSection() local
84 addAtomForSection(inSection, atom, sectionOffset); in addDefinedAtomInCustomSection()
111 auto *atom = in addZeroFillDefinedAtom() local
114 addAtomForSection(inSection, atom, sectionOffset); in addZeroFillDefinedAtom()
122 auto *atom = new (allocator()) SimpleUndefinedAtom(*this, name); in addUndefinedAtom() local
123 addAtom(*atom); in addUndefinedAtom()
124 _undefAtoms[name] = atom; in addUndefinedAtom()
133 auto *atom = in addTentativeDefAtom() local
135 addAtom(*atom); in addTentativeDefAtom()
136 _undefAtoms[name] = atom; in addTentativeDefAtom()
156 uint64_t atomsEndOffset = ao.offset+ao.atom->rawContent().size();
163 return atomPos->atom;
175 typedef std::function<void (MachODefinedAtom* atom)> DefinedAtomVisitor;
180 vistor(offAndAtom.atom); in eachDefinedAtom()
185 typedef std::function<void(MachODefinedAtom *atom, uint64_t offset)>
195 visitor(offAndAtom.atom, offAndAtom.offset); in eachAtomInSection()
254 struct SectionOffsetAndAtom { uint64_t offset; MachODefinedAtom *atom; }; member
256 void addAtomForSection(const Section *inSection, MachODefinedAtom* atom, in addAtomForSection() argument
260 offAndAtom.atom = atom; in addAtomForSection()
262 addAtom(*atom); in addAtomForSection()
354 assert(!entry->second.atom && "Duplicate shared library export"); in exports()
356 auto *atom = new (allocator()) MachOSharedLibraryAtom(*this, name, in exports() local
359 entry->second.atom = atom; in exports()
360 return atom; in exports()
366 auto atom = dylib.file->exports(name, installName); in exports() local
367 if (atom.get()) in exports()
368 return atom; in exports()
382 AtomAndFlags() : atom(nullptr), weakDef(false) { } in AtomAndFlags()
383 AtomAndFlags(bool weak) : atom(nullptr), weakDef(weak) { } in AtomAndFlags()
384 const SharedLibraryAtom *atom; member