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> |
John Criswell | 6243534 | 2003-09-26 16:32:00 +0000 | [diff] [blame] | 47 | Add the specified directory to the library search path. When looking for |
| 48 | libraries, llvm-link will look in pathname for libraries. This option can |
| 49 | be specified multiple times; llvm-link will search inside these directories |
| 50 | in the order in which they were specified on the command line. |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 51 | <p> |
| 52 | |
| 53 | <li>-f |
| 54 | <br> |
| 55 | Overwrite output files. By default, llvm-link will not overwrite an |
| 56 | output file if it alreadys exists. |
| 57 | <p> |
| 58 | |
| 59 | <li>-o <filename> |
| 60 | <br> |
John Criswell | 6243534 | 2003-09-26 16:32:00 +0000 | [diff] [blame] | 61 | Output filename. If filename is -, then llvm-link will write its output to |
| 62 | standard output. |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 63 | <p> |
| 64 | |
John Criswell | 6243534 | 2003-09-26 16:32:00 +0000 | [diff] [blame] | 65 | <li>-d |
| 66 | <br> |
| 67 | If specified, llvm-link prints a human readable version of the output |
| 68 | bytecode file to standard error. |
| 69 | <p> |
| 70 | |
| 71 | <li>-help |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 72 | <br> |
| 73 | Print a summary of command line options. |
| 74 | <p> |
| 75 | |
John Criswell | 6243534 | 2003-09-26 16:32:00 +0000 | [diff] [blame] | 76 | <li>-stats |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 77 | <br> |
| 78 | Print statistics. |
| 79 | <p> |
| 80 | |
John Criswell | 6243534 | 2003-09-26 16:32:00 +0000 | [diff] [blame] | 81 | <li>-time-passes |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 82 | <br> |
| 83 | Record the amount of time needed for each pass and print it to standard |
| 84 | error. |
| 85 | <p> |
| 86 | |
John Criswell | 6243534 | 2003-09-26 16:32:00 +0000 | [diff] [blame] | 87 | <li>-v |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 88 | <br> |
| 89 | Verbose mode. Print information about what llvm-link is doing. |
| 90 | </ul> |
| 91 | |
| 92 | <h3> |
| 93 | EXIT STATUS |
| 94 | </h3> |
| 95 | |
| 96 | If llvm-link succeeds, it will exit with 0. Otherwise, if an error occurs, it |
| 97 | will exit with a non-zero value. |
| 98 | |
| 99 | <h3> |
| 100 | SEE ALSO |
| 101 | </h3> |
John Criswell | 6243534 | 2003-09-26 16:32:00 +0000 | [diff] [blame] | 102 | llvm-dis, lli, gccld |
John Criswell | 58ebcd0 | 2003-09-17 14:11:24 +0000 | [diff] [blame] | 103 | |
| 104 | <HR> |
| 105 | <a href="http://llvm.cs.uiuc.edu">LLVM Team</a> |
| 106 | </body> |
| 107 | </html> |
| 108 | |