llvm-link.rst 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. llvm-link - LLVM bitcode linker
  2. ===============================
  3. SYNOPSIS
  4. --------
  5. :program:`llvm-link` [*options*] *filename ...*
  6. DESCRIPTION
  7. -----------
  8. :program:`llvm-link` takes several LLVM bitcode files and links them together
  9. into a single LLVM bitcode file. It writes the output file to standard output,
  10. unless the :option:`-o` option is used to specify a filename.
  11. OPTIONS
  12. -------
  13. .. option:: -f
  14. Enable binary output on terminals. Normally, :program:`llvm-link` will refuse
  15. to write raw bitcode output if the output stream is a terminal. With this
  16. option, :program:`llvm-link` will write raw bitcode regardless of the output
  17. device.
  18. .. option:: -o filename
  19. Specify the output file name. If ``filename`` is "``-``", then
  20. :program:`llvm-link` will write its output to standard output.
  21. .. option:: -S
  22. Write output in LLVM intermediate language (instead of bitcode).
  23. .. option:: -d
  24. If specified, :program:`llvm-link` prints a human-readable version of the
  25. output bitcode file to standard error.
  26. .. option:: -help
  27. Print a summary of command line options.
  28. .. option:: -v
  29. Verbose mode. Print information about what :program:`llvm-link` is doing.
  30. This typically includes a message for each bitcode file linked in and for each
  31. library found.
  32. EXIT STATUS
  33. -----------
  34. If :program:`llvm-link` succeeds, it will exit with 0. Otherwise, if an error
  35. occurs, it will exit with a non-zero value.