Lines Matching refs:Linker
1 //===- llvm/Linker.h - Module Linker Interface ------------------*- C++ -*-===//
10 // This file defines the interface to the module/file/archive linker.
30 /// In this case the Linker still retains ownership of the Module. If the
32 /// to the caller and the Linker object is only suitable for destruction.
33 /// The Linker can link Modules from memory, bitcode files, or bitcode
35 /// presented to it. By default, the linker will generate error and warning
39 /// @brief The LLVM Linker.
40 class Linker {
54 /// linker.
56 Verbose = 1, ///< Print to stderr what steps the linker is taking
70 /// Construct the Linker with an empty module which will be given the
73 Linker(StringRef progname, ///< name of tool running linker
74 StringRef modulename, ///< name of linker's end-result module
79 /// Construct the Linker with a previously defined module, \p aModule. Use
82 Linker(StringRef progname, Module* aModule, unsigned Flags = 0);
84 /// Destruct the Linker.
86 ~Linker();
95 /// release the Module to the caller. The Linker retains ownership and will
96 /// destruct the Module when the Linker is destructed.
103 /// must arrange for its destruct. After this method is called, the Linker
106 /// subsequent linking as if the constructor had been called. The Linker's
112 /// Linker will search when it is presented with a library name.
130 /// Add a path to the list of paths that the Linker will search. The Linker
138 /// Add a set of paths to the list of paths that the linker will search. The
139 /// Linker accumulates the set of libraries added. The \p paths will be
140 /// added to the end of the Linker's list. Order will be retained.
144 /// This method augments the Linker's list of library paths with the system
149 /// Control optional linker behavior by setting a group of flags. The flags
155 /// This method is the main interface to the linker. It can be used to
157 /// file name with fully qualified path, or a library for which the Linker's
186 /// occurs, the Linker's error string is set.
198 /// as if given with the -l option of a linker tool. The Linker's LibPaths
200 /// LinkInArchive. If an error occurs, the Linker's error string is set.
212 /// with the -l option of a linker tool. The Linker's LibPaths are searched
214 /// LinkInArchive method. If an error occurs, the Linker's error string is
242 /// This method links the \p Src module into the Linker's Composite module
244 /// result in calling this method to link a Module into the Linker's
253 return LinkModules(Composite, Src, Linker::DestroySource, ErrorMsg );
256 /// This is the heart of the linker. This method will take unconditional
261 /// Linker's composite module such that types, global variables, functions,
270 /// This function looks through the Linker's LibPaths to find a library with