blob: ff980c2241d6084a461a289b51445f2c5c83341f [file] [log] [blame]
John Criswell58ebcd02003-09-17 14:11:24 +00001<html>
2<title>
Chris Lattneree43b692003-09-25 19:50:05 +00003LLVM: llvm-link tool
John Criswell58ebcd02003-09-17 14:11:24 +00004</title>
5
Chris Lattnerbf6f4382003-10-07 20:09:21 +00006<body bgcolor=white>
John Criswell58ebcd02003-09-17 14:11:24 +00007
Chris Lattnerbf6f4382003-10-07 20:09:21 +00008<center><h1>LLVM: <tt>llvm-link</tt> tool</h1></center>
John Criswell58ebcd02003-09-17 14:11:24 +00009<HR>
10
Chris Lattnerbf6f4382003-10-07 20:09:21 +000011<h3>NAME</h3>
12<tt>llvm-link</tt>
John Criswell58ebcd02003-09-17 14:11:24 +000013
Chris Lattnerbf6f4382003-10-07 20:09:21 +000014<h3>SYNOPSIS</h3>
15<tt>llvm-link [options] &lt;filename&gt; [filename ...]</tt>
John Criswell58ebcd02003-09-17 14:11:24 +000016
Chris Lattnerbf6f4382003-10-07 20:09:21 +000017<h3>DESCRIPTION</h3>
John Criswell58ebcd02003-09-17 14:11:24 +000018
Chris Lattnerbf6f4382003-10-07 20:09:21 +000019The <tt>llvm-link</tt> command takes several LLVM bytecode files and links them
20together into a single LLVM bytecode file. It writes the output file to
21standard output, unless the -o option is used to specify a filename.
John Criswell62435342003-09-26 16:32:00 +000022<p>
23
Chris Lattnerbf6f4382003-10-07 20:09:21 +000024The <tt>llvm-link</tt> command attempts to load the input files from the current
Brian Gaekee08ad2e2003-10-19 18:09:24 +000025directory. If that fails, it looks for each file in each of the
Chris Lattnerbf6f4382003-10-07 20:09:21 +000026directories specified by the -L options on the command line. The library search
Brian Gaekee08ad2e2003-10-19 18:09:24 +000027paths are global; each one is searched for every input file if necessary. The
Chris Lattnerbf6f4382003-10-07 20:09:21 +000028directories are searched in the order they were specified on the command line.
John Criswell58ebcd02003-09-17 14:11:24 +000029
30<h3>
31OPTIONS
32</h3>
33
34<ul>
John Criswell62435342003-09-26 16:32:00 +000035 <li>-L &lt;directory&gt;
John Criswell58ebcd02003-09-17 14:11:24 +000036 <br>
Chris Lattner8bf33852003-10-07 16:36:25 +000037 Add the specified directory to the library search path. When looking
Chris Lattnerbf6f4382003-10-07 20:09:21 +000038 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.
John Criswell58ebcd02003-09-17 14:11:24 +000042 <p>
43
44 <li>-f
45 <br>
Chris Lattnerbf6f4382003-10-07 20:09:21 +000046 Overwrite output files. By default, <tt>llvm-link</tt> will not
47 overwrite an output file if it alreadys exists.
John Criswell58ebcd02003-09-17 14:11:24 +000048 <p>
49
50 <li>-o &lt;filename&gt;
51 <br>
Chris Lattnerbf6f4382003-10-07 20:09:21 +000052 Output filename. If filename is -, then <tt>llvm-link</tt> will write
53 its output to standard output.
John Criswell58ebcd02003-09-17 14:11:24 +000054 <p>
55
John Criswell62435342003-09-26 16:32:00 +000056 <li>-d
57 <br>
Brian Gaekee08ad2e2003-10-19 18:09:24 +000058 If specified, <tt>llvm-link</tt> prints a human-readable version of the
Chris Lattnerbf6f4382003-10-07 20:09:21 +000059 output bytecode file to standard error.
John Criswell62435342003-09-26 16:32:00 +000060 <p>
61
62 <li>-help
John Criswell58ebcd02003-09-17 14:11:24 +000063 <br>
64 Print a summary of command line options.
65 <p>
66
John Criswell62435342003-09-26 16:32:00 +000067 <li>-v
John Criswell58ebcd02003-09-17 14:11:24 +000068 <br>
Chris Lattnerbf6f4382003-10-07 20:09:21 +000069 Verbose mode. Print information about what <tt>llvm-link</tt> is doing.
Brian Gaekee08ad2e2003-10-19 18:09:24 +000070 This typically includes a message for each bytecode file linked in
71 and for each library found.
John Criswell58ebcd02003-09-17 14:11:24 +000072</ul>
73
74<h3>
75EXIT STATUS
76</h3>
77
Chris Lattnerbf6f4382003-10-07 20:09:21 +000078If <tt>llvm-link</tt> succeeds, it will exit with 0. Otherwise, if an error
79occurs, it will exit with a non-zero value.
John Criswell58ebcd02003-09-17 14:11:24 +000080
Chris Lattnerbf6f4382003-10-07 20:09:21 +000081<h3>SEE ALSO</h3>
82<a href="gccld.html"><tt>gccld</tt></a>
John Criswell58ebcd02003-09-17 14:11:24 +000083
84<HR>
Chris Lattnerbf6f4382003-10-07 20:09:21 +000085Maintained by the <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>.
John Criswell58ebcd02003-09-17 14:11:24 +000086</body>
87</html>
88