John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <title> |
Chris Lattner | ee43b69 | 2003-09-25 19:50:05 +0000 | [diff] [blame] | 3 | LLVM: llvm-link tool |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 4 | </title> |
| 5 | |
| 6 | <body> |
| 7 | |
| 8 | <center> |
Chris Lattner | ee43b69 | 2003-09-25 19:50:05 +0000 | [diff] [blame] | 9 | <h1>LLVM: llvm-link tool</h1> |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 10 | </center> |
| 11 | <HR> |
| 12 | |
| 13 | <h3> |
| 14 | NAME |
| 15 | </h3> |
| 16 | |
| 17 | llvm-link |
| 18 | |
| 19 | <h3> |
| 20 | SYNOPSIS |
| 21 | </h3> |
| 22 | |
| 23 | llvm-link [options] <filename> [filename ...] |
| 24 | <h3> |
| 25 | DESCRIPTION |
| 26 | </h3> |
| 27 | |
John Criswell | 6243534 | 2003-09-26 16:32:00 +0000 | [diff] [blame] | 28 | The llvm-link command takes several LLVM bytecode files and links them together |
| 29 | into a single LLVM bytecode file. It writes the output file to standard |
| 30 | output, unless the -o option is used to specify a filename. |
| 31 | <p> |
| 32 | |
| 33 | The llvm-link command attempts to load the input files from the current |
| 34 | directory. If that fails, it attempts to locate each file within the |
| 35 | directories specified by the -L options on the command line. The library |
| 36 | search paths are global; each one is search for every input file if necessary. |
| 37 | The directories are searched in the order they were specified on the command |
| 38 | line. |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 39 | |
| 40 | <h3> |
| 41 | OPTIONS |
| 42 | </h3> |
| 43 | |
| 44 | <ul> |
John Criswell | 6243534 | 2003-09-26 16:32:00 +0000 | [diff] [blame] | 45 | <li>-L <directory> |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 46 | <br> |
Chris Lattner | 8bf3385 | 2003-10-07 16:36:25 +0000 | [diff] [blame^] | 47 | 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 Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 52 | <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 <filename> |
| 61 | <br> |
Chris Lattner | 8bf3385 | 2003-10-07 16:36:25 +0000 | [diff] [blame^] | 62 | Output filename. If filename is -, then llvm-link will write its output |
| 63 | to standard output. |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 64 | <p> |
| 65 | |
John Criswell | 6243534 | 2003-09-26 16:32:00 +0000 | [diff] [blame] | 66 | <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 Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 73 | <br> |
| 74 | Print a summary of command line options. |
| 75 | <p> |
| 76 | |
John Criswell | 6243534 | 2003-09-26 16:32:00 +0000 | [diff] [blame] | 77 | <li>-v |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 78 | <br> |
| 79 | Verbose mode. Print information about what llvm-link is doing. |
| 80 | </ul> |
| 81 | |
| 82 | <h3> |
| 83 | EXIT STATUS |
| 84 | </h3> |
| 85 | |
| 86 | If llvm-link succeeds, it will exit with 0. Otherwise, if an error occurs, it |
| 87 | will exit with a non-zero value. |
| 88 | |
| 89 | <h3> |
| 90 | SEE ALSO |
| 91 | </h3> |
John Criswell | 6243534 | 2003-09-26 16:32:00 +0000 | [diff] [blame] | 92 | llvm-dis, lli, gccld |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 93 | |
| 94 | <HR> |
| 95 | <a href="http://llvm.cs.uiuc.edu">LLVM Team</a> |
| 96 | </body> |
| 97 | </html> |
| 98 | |