1LLVM-LINK(1) LLVM Command Guide LLVM-LINK(1)
2
3
4
6 llvm-link - LLVM linker
7
9 llvm-link [options] filename ...
10
12 llvm-link takes several LLVM bitcode files and links them together into
13 a single LLVM bitcode file. It writes the output file to standard
14 output, unless the -o option is used to specify a filename.
15
16 llvm-link attempts to load the input files from the current directory.
17 If that fails, it looks for each file in each of the directories
18 specified by the -L options on the command line. The library search
19 paths are global; each one is searched for every input file if
20 necessary. The directories are searched in the order they were
21 specified on the command line.
22
24 -L directory
25 Add the specified directory to the library search path. When
26 looking for libraries, llvm-link will look in path name for
27 libraries. This option can be specified multiple times; llvm-link
28 will search inside these directories in the order in which they
29 were specified on the command line.
30
31 -f Enable binary output on terminals. Normally, llvm-link will refuse
32 to write raw bitcode output if the output stream is a terminal.
33 With this option, llvm-link will write raw bitcode regardless of
34 the output device.
35
36 -o filename
37 Specify the output file name. If filename is "-", then llvm-link
38 will write its output to standard output.
39
40 -S Write output in LLVM intermediate language (instead of bitcode).
41
42 -d If specified, llvm-link prints a human-readable version of the
43 output bitcode file to standard error.
44
45 -help
46 Print a summary of command line options.
47
48 -v Verbose mode. Print information about what llvm-link is doing.
49 This typically includes a message for each bitcode file linked in
50 and for each library found.
51
53 If llvm-link succeeds, it will exit with 0. Otherwise, if an error
54 occurs, it will exit with a non-zero value.
55
57 gccld
58
60 Maintained by the LLVM Team (<http://llvm.org>).
61
62
63
64CVS 2010-05-07 LLVM-LINK(1)