Searched refs:OwningAtomPtr (Results 1 – 11 of 11) sorted by relevance
20 class OwningAtomPtr; variable30 template<typename T> friend class OwningAtomPtr; variable81 class OwningAtomPtr {83 OwningAtomPtr(const OwningAtomPtr &) = delete;84 void operator=(const OwningAtomPtr &) = delete;87 OwningAtomPtr() = default;88 OwningAtomPtr(T *atom) : atom(atom) { } in OwningAtomPtr() function90 ~OwningAtomPtr() { in ~OwningAtomPtr()99 OwningAtomPtr(OwningAtomPtr &&ptr) : atom(ptr.atom) { in OwningAtomPtr() function103 void operator=(OwningAtomPtr&& ptr) {
37 void doDefinedAtom(OwningAtomPtr<DefinedAtom> atom);38 bool doUndefinedAtom(OwningAtomPtr<UndefinedAtom> atom);39 void doSharedLibraryAtom(OwningAtomPtr<SharedLibraryAtom> atom);40 void doAbsoluteAtom(OwningAtomPtr<AbsoluteAtom> atom);76 void addAtoms(llvm::MutableArrayRef<OwningAtomPtr<Atom>> atoms);81 std::vector<OwningAtomPtr<Atom>> _atoms;
109 template <typename T> using AtomVector = std::vector<OwningAtomPtr<T>>;117 using ConstDerefFn = const T* (*)(const OwningAtomPtr<T>&);118 using DerefFn = T* (*)(OwningAtomPtr<T>&);125 static const T* DerefConst(const OwningAtomPtr<T> &p) { in DerefConst()129 static T* Deref(OwningAtomPtr<T> &p) { in Deref()163 const OwningAtomPtr<T> &operator[](size_t idx) const {167 OwningAtomPtr<T> &operator[](size_t idx) {
51 _defined.push_back(OwningAtomPtr<DefinedAtom>(&a)); in addAtom()54 _undefined.push_back(OwningAtomPtr<UndefinedAtom>(&a)); in addAtom()57 _shared.push_back(OwningAtomPtr<SharedLibraryAtom>(&a)); in addAtom()60 _absolute.push_back(OwningAtomPtr<AbsoluteAtom>(&a)); in addAtom()80 [&pred](OwningAtomPtr<DefinedAtom> &p) { in removeDefinedAtomsIf()
29 virtual OwningAtomPtr<SharedLibraryAtom> exports(StringRef name) const = 0;
105 bool Resolver::doUndefinedAtom(OwningAtomPtr<UndefinedAtom> atom) { in doUndefinedAtom()117 _atoms.push_back(OwningAtomPtr<Atom>(atom.release())); in doUndefinedAtom()124 void Resolver::doDefinedAtom(OwningAtomPtr<DefinedAtom> atom) { in doDefinedAtom()146 _atoms.push_back(OwningAtomPtr<Atom>(atom.release())); in doDefinedAtom()149 void Resolver::doSharedLibraryAtom(OwningAtomPtr<SharedLibraryAtom> atom) { in doSharedLibraryAtom()161 _atoms.push_back(OwningAtomPtr<Atom>(atom.release())); in doSharedLibraryAtom()164 void Resolver::doAbsoluteAtom(OwningAtomPtr<AbsoluteAtom> atom) { in doAbsoluteAtom()177 _atoms.push_back(OwningAtomPtr<Atom>(atom.release())); in doAbsoluteAtom()298 for (const OwningAtomPtr<Atom> &atom : _atoms) { in updateReferences()355 for (const OwningAtomPtr<Atom> &atom : _atoms) { in deadStripOptimize()[all …]
35 SortKey(OwningAtomPtr<DefinedAtom> &&atom, in SortKey()38 OwningAtomPtr<DefinedAtom> _atom;
29 OwningAtomPtr<SharedLibraryAtom> exports(StringRef name) const override { in exports()
293 OwningAtomPtr<SharedLibraryAtom> exports(StringRef name) const override { in exports()346 OwningAtomPtr<SharedLibraryAtom> exports(StringRef name, in exports()
425 for (OwningAtomPtr<DefinedAtom> &atom : atomRange.owning_ptrs()) { in decorate()
210 using Ty = std::vector<OwningAtomPtr<T>>;