blob: 8a2a8c5d77016ccb395370151114d69a743502f1 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001=pod
2
3=head1 NAME
4
5llvm-link - LLVM linker
6
7=head1 SYNOPSIS
8
9B<llvm-link> [I<options>] I<filename ...>
10
11=head1 DESCRIPTION
12
13B<llvm-link> takes several LLVM bitcode files and links them together into a
14single LLVM bitcode file. It writes the output file to standard output, unless
15the B<-o> option is used to specify a filename.
16
17B<llvm-link> attempts to load the input files from the current directory. If
18that fails, it looks for each file in each of the directories specified by the
19B<-L> options on the command line. The library search paths are global; each
20one is searched for every input file if necessary. The directories are searched
21in the order they were specified on the command line.
22
23=head1 OPTIONS
24
25=over
26
27=item B<-L> F<directory>
28
29Add the specified F<directory> to the library search path. When looking for
30libraries, B<llvm-link> will look in path name for libraries. This option can be
31specified multiple times; B<llvm-link> will search inside these directories in
32the order in which they were specified on the command line.
33
34=item B<-f>
35
Dan Gohman87489cf2009-08-25 15:54:01 +000036Enable binary output on terminals. Normally, B<llvm-link> will refuse to
37write raw bitcode output if the output stream is a terminal. With this option,
38B<llvm-link> will write raw bitcode regardless of the output device.
Dan Gohmanf17a25c2007-07-18 16:29:46 +000039
40=item B<-o> F<filename>
41
42Specify the output file name. If F<filename> is C<->, then B<llvm-link> will
43write its output to standard output.
44
45=item B<-d>
46
47If specified, B<llvm-link> prints a human-readable version of the output
48bitcode file to standard error.
49
50=item B<--help>
51
52Print a summary of command line options.
53
54=item B<-v>
55
56Verbose mode. Print information about what B<llvm-link> is doing. This
57typically includes a message for each bitcode file linked in and for each
58library found.
59
60=back
61
62=head1 EXIT STATUS
63
64If B<llvm-link> succeeds, it will exit with 0. Otherwise, if an error
65occurs, it will exit with a non-zero value.
66
67=head1 SEE ALSO
68
69L<gccld|gccld>
70
71=head1 AUTHORS
72
73Maintained by the LLVM Team (L<http://llvm.org>).
74
75=cut