llvm-link.rst 1.4 KB

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