8 <center><h1>LLVM: <tt>llvm-link</tt> tool</h1></center>
15 <tt>llvm-link [options] <filename> [filename ...]</tt>
19 The <tt>llvm-link</tt> command takes several LLVM bytecode files and links them
20 together into a single LLVM bytecode file. It writes the output file to
21 standard output, unless the -o option is used to specify a filename.
24 The <tt>llvm-link</tt> command attempts to load the input files from the current
25 directory. If that fails, it looks for each file in each of the
26 directories specified by the -L options on the command line. The library search
27 paths are global; each one is searched for every input file if necessary. The
28 directories are searched in the order they were specified on the command line.
35 <li>-L <directory>
37 Add the specified directory to the library search path. When looking
38 for libraries, <tt>llvm-link</tt> will look in pathname for libraries.
39 This option can be specified multiple times; <tt>llvm-link</tt> will
40 search inside these directories in the order in which they were
41 specified on the command line.
46 Overwrite output files. By default, <tt>llvm-link</tt> will not
47 overwrite an output file if it alreadys exists.
50 <li>-o <filename>
52 Output filename. If filename is -, then <tt>llvm-link</tt> will write
53 its output to standard output.
58 If specified, <tt>llvm-link</tt> prints a human-readable version of the
59 output bytecode file to standard error.
64 Print a summary of command line options.
69 Verbose mode. Print information about what <tt>llvm-link</tt> is doing.
70 This typically includes a message for each bytecode file linked in
71 and for each library found.
78 If <tt>llvm-link</tt> succeeds, it will exit with 0. Otherwise, if an error
79 occurs, it will exit with a non-zero value.
82 <a href="gccld.html"><tt>gccld</tt></a>
85 Maintained by the <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>.