Home
last modified time | relevance | path

Searched refs:OwningAtomPtr (Results 1 – 11 of 11) sorted by relevance

/external/llvm-project/lld/include/lld/Core/
DAtom.h20 class OwningAtomPtr; variable
30 template<typename T> friend class OwningAtomPtr; variable
81 class OwningAtomPtr {
83 OwningAtomPtr(const OwningAtomPtr &) = delete;
84 void operator=(const OwningAtomPtr &) = delete;
87 OwningAtomPtr() = default;
88 OwningAtomPtr(T *atom) : atom(atom) { } in OwningAtomPtr() function
90 ~OwningAtomPtr() { in ~OwningAtomPtr()
99 OwningAtomPtr(OwningAtomPtr &&ptr) : atom(ptr.atom) { in OwningAtomPtr() function
103 void operator=(OwningAtomPtr&& ptr) {
DResolver.h37 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;
DFile.h109 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) {
DSimple.h51 _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()
DSharedLibraryFile.h29 virtual OwningAtomPtr<SharedLibraryAtom> exports(StringRef name) const = 0;
/external/llvm-project/lld/lib/Core/
DResolver.cpp105 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 …]
/external/llvm-project/lld/lib/ReaderWriter/MachO/
DLayoutPass.h35 SortKey(OwningAtomPtr<DefinedAtom> &&atom, in SortKey()
38 OwningAtomPtr<DefinedAtom> _atom;
DFlatNamespaceFile.h29 OwningAtomPtr<SharedLibraryAtom> exports(StringRef name) const override { in exports()
DFile.h293 OwningAtomPtr<SharedLibraryAtom> exports(StringRef name) const override { in exports()
346 OwningAtomPtr<SharedLibraryAtom> exports(StringRef name, in exports()
DLayoutPass.cpp425 for (OwningAtomPtr<DefinedAtom> &atom : atomRange.owning_ptrs()) { in decorate()
/external/llvm-project/lld/lib/ReaderWriter/YAML/
DReaderWriterYAML.cpp210 using Ty = std::vector<OwningAtomPtr<T>>;