diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-12-21 05:13:06 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-12-21 05:13:06 +0000 |
commit | fa8dab423e0ccafa52a51c091dee4b4d12c49d13 (patch) | |
tree | ceb14bfebc9df10dc44c00609e9fcd410f03745f /docs/CommandGuide | |
parent | 7bfdd86147c1869e2d0ddd7359cc2689e87e38fe (diff) |
Document the new -post-link-opts option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide')
-rw-r--r-- | docs/CommandGuide/llvm-ld.pod | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/CommandGuide/llvm-ld.pod b/docs/CommandGuide/llvm-ld.pod index be2ff9da57..2b9d92dcf1 100644 --- a/docs/CommandGuide/llvm-ld.pod +++ b/docs/CommandGuide/llvm-ld.pod @@ -136,6 +136,21 @@ be passed the PassManager, and the optimization level (values 0-5 based on the B<-On> option). This function may add passes to the PassManager that should be run. This feature allows the optimization passes of B<llvm-ld> to be extended. +=item B<-post-link-opt>F<Path> + +Run post-link optimization program. After linking is completed a bytecode file +will be generated. It will be passed to the program specified by F<Path> as the +first argument. The second argument to the program will be the name of a +temporary file into which the program should place its optimized output. For +example, the "no-op optimization" would be a simple shell script: + +=over + +#!/bin/bash +cp $1 $2 + +=back + =back =head2 Miscellaneous Options |