blob: 64895c8a782ca70744d2b7e4216194512d54f133 [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
6<body>
7
8<center>
Chris Lattneree43b692003-09-25 19:50:05 +00009<h1>LLVM: llvm-link tool</h1>
John Criswell58ebcd02003-09-17 14:11:24 +000010</center>
11<HR>
12
13<h3>
14NAME
15</h3>
16
17llvm-link
18
19<h3>
20SYNOPSIS
21</h3>
22
23llvm-link [options] &lt;filename&gt; [filename ...]
24<h3>
25DESCRIPTION
26</h3>
27
John Criswell62435342003-09-26 16:32:00 +000028The llvm-link command takes several LLVM bytecode files and links them together
29into a single LLVM bytecode file. It writes the output file to standard
30output, unless the -o option is used to specify a filename.
31<p>
32
33The llvm-link command attempts to load the input files from the current
34directory. If that fails, it attempts to locate each file within the
35directories specified by the -L options on the command line. The library
36search paths are global; each one is search for every input file if necessary.
37The directories are searched in the order they were specified on the command
38line.
John Criswell58ebcd02003-09-17 14:11:24 +000039
40<h3>
41OPTIONS
42</h3>
43
44<ul>
John Criswell62435342003-09-26 16:32:00 +000045 <li>-L &lt;directory&gt;
John Criswell58ebcd02003-09-17 14:11:24 +000046 <br>
Chris Lattner8bf33852003-10-07 16:36:25 +000047 Add the specified directory to the library search path. When looking
48 for libraries, llvm-link will look in pathname for libraries. This
49 option can be specified multiple times; llvm-link will search inside
50 these directories in the order in which they were specified on the
51 command line.
John Criswell58ebcd02003-09-17 14:11:24 +000052 <p>
53
54 <li>-f
55 <br>
56 Overwrite output files. By default, llvm-link will not overwrite an
57 output file if it alreadys exists.
58 <p>
59
60 <li>-o &lt;filename&gt;
61 <br>
Chris Lattner8bf33852003-10-07 16:36:25 +000062 Output filename. If filename is -, then llvm-link will write its output
63 to standard output.
John Criswell58ebcd02003-09-17 14:11:24 +000064 <p>
65
John Criswell62435342003-09-26 16:32:00 +000066 <li>-d
67 <br>
68 If specified, llvm-link prints a human readable version of the output
69 bytecode file to standard error.
70 <p>
71
72 <li>-help
John Criswell58ebcd02003-09-17 14:11:24 +000073 <br>
74 Print a summary of command line options.
75 <p>
76
John Criswell62435342003-09-26 16:32:00 +000077 <li>-v
John Criswell58ebcd02003-09-17 14:11:24 +000078 <br>
79 Verbose mode. Print information about what llvm-link is doing.
80</ul>
81
82<h3>
83EXIT STATUS
84</h3>
85
86If llvm-link succeeds, it will exit with 0. Otherwise, if an error occurs, it
87will exit with a non-zero value.
88
89<h3>
90SEE ALSO
91</h3>
John Criswell62435342003-09-26 16:32:00 +000092llvm-dis, lli, gccld
John Criswell58ebcd02003-09-17 14:11:24 +000093
94<HR>
95<a href="http://llvm.cs.uiuc.edu">LLVM Team</a>
96</body>
97</html>
98