summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-12-21 05:13:06 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-12-21 05:13:06 +0000
commitb1f01ac2fb0d1326133e69ed415b6c4351739205 (patch)
tree88fa91b5d686f9b79b4f6fc8793ebee492e7bdf8 /llvm/docs/CommandGuide
parentc6b578da26a510aa4fa6d46527c9dd8ee592424e (diff)
downloadbcm5719-llvm-b1f01ac2fb0d1326133e69ed415b6c4351739205.tar.gz
bcm5719-llvm-b1f01ac2fb0d1326133e69ed415b6c4351739205.zip
Document the new -post-link-opts option.
llvm-svn: 24895
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r--llvm/docs/CommandGuide/llvm-ld.pod15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-ld.pod b/llvm/docs/CommandGuide/llvm-ld.pod
index be2ff9da576..2b9d92dcf1c 100644
--- a/llvm/docs/CommandGuide/llvm-ld.pod
+++ b/llvm/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
OpenPOWER on IntegriCloud