diff options
Diffstat (limited to 'include/lld/ReaderWriter/MachOLinkingContext.h')
| -rw-r--r-- | include/lld/ReaderWriter/MachOLinkingContext.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/lld/ReaderWriter/MachOLinkingContext.h b/include/lld/ReaderWriter/MachOLinkingContext.h index 7b673f0dad3e..a9e80f50b23d 100644 --- a/include/lld/ReaderWriter/MachOLinkingContext.h +++ b/include/lld/ReaderWriter/MachOLinkingContext.h @@ -377,6 +377,10 @@ public: uint32_t dylibCompatVersion(StringRef installName) const; + ArrayRef<mach_o::MachODylibFile*> allDylibs() const { + return _allDylibs; + } + /// Creates a copy (owned by this MachOLinkingContext) of a string. StringRef copy(StringRef str) { return str.copy(_allocator); } @@ -485,7 +489,7 @@ private: mutable std::unique_ptr<Writer> _writer; std::vector<SectionAlign> _sectAligns; mutable llvm::StringMap<mach_o::MachODylibFile*> _pathToDylibMap; - mutable std::set<mach_o::MachODylibFile*> _allDylibs; + mutable std::vector<mach_o::MachODylibFile*> _allDylibs; mutable std::set<mach_o::MachODylibFile*> _upwardDylibs; mutable std::vector<std::unique_ptr<File>> _indirectDylibs; mutable std::mutex _dylibsMutex; |
