003 File Manager
Current Path:
/usr/src/contrib/llvm-project/lld/include/lld/Core
usr
/
src
/
contrib
/
llvm-project
/
lld
/
include
/
lld
/
Core
/
📁
..
📄
AbsoluteAtom.h
(1.27 KB)
📄
ArchiveLibraryFile.h
(1.57 KB)
📄
Atom.h
(3.7 KB)
📄
DefinedAtom.h
(14.77 KB)
📄
Error.h
(2.01 KB)
📄
File.h
(9.15 KB)
📄
Instrumentation.h
(3.26 KB)
📄
LinkingContext.h
(10.19 KB)
📄
Node.h
(1.82 KB)
📄
Pass.h
(1.4 KB)
📄
PassManager.h
(1.27 KB)
📄
Reader.h
(5.84 KB)
📄
Reference.h
(4.09 KB)
📄
Resolver.h
(3.31 KB)
📄
SharedLibraryAtom.h
(1.46 KB)
📄
SharedLibraryFile.h
(1.99 KB)
📄
Simple.h
(8.34 KB)
📄
SymbolTable.h
(2.85 KB)
📄
UndefinedAtom.h
(2.28 KB)
📄
Writer.h
(1.46 KB)
Editing: SharedLibraryFile.h
//===- Core/SharedLibraryFile.h - Models shared libraries as Atoms --------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLD_CORE_SHARED_LIBRARY_FILE_H #define LLD_CORE_SHARED_LIBRARY_FILE_H #include "lld/Core/File.h" namespace lld { /// /// The SharedLibraryFile subclass of File is used to represent dynamic /// shared libraries being linked against. /// class SharedLibraryFile : public File { public: static bool classof(const File *f) { return f->kind() == kindSharedLibrary; } /// Check if the shared library exports a symbol with the specified name. /// If so, return a SharedLibraryAtom which represents that exported /// symbol. Otherwise return nullptr. virtual OwningAtomPtr<SharedLibraryAtom> exports(StringRef name) const = 0; // Returns the install name. virtual StringRef getDSOName() const = 0; const AtomRange<DefinedAtom> defined() const override { return _definedAtoms; } const AtomRange<UndefinedAtom> undefined() const override { return _undefinedAtoms; } const AtomRange<SharedLibraryAtom> sharedLibrary() const override { return _sharedLibraryAtoms; } const AtomRange<AbsoluteAtom> absolute() const override { return _absoluteAtoms; } void clearAtoms() override { _definedAtoms.clear(); _undefinedAtoms.clear(); _sharedLibraryAtoms.clear(); _absoluteAtoms.clear(); } protected: /// only subclasses of SharedLibraryFile can be instantiated explicit SharedLibraryFile(StringRef path) : File(path, kindSharedLibrary) {} AtomVector<DefinedAtom> _definedAtoms; AtomVector<UndefinedAtom> _undefinedAtoms; AtomVector<SharedLibraryAtom> _sharedLibraryAtoms; AtomVector<AbsoluteAtom> _absoluteAtoms; }; } // namespace lld #endif // LLD_CORE_SHARED_LIBRARY_FILE_H
Upload File
Create Folder