summaryrefslogtreecommitdiffstats
path: root/llvm/docs/GoldPlugin.html
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2009-07-08 11:13:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2009-07-08 11:13:34 +0000
commitca4231e353fd75eb149469d0e9d0ae8438238344 (patch)
treed553964cbbc42eb07cf4b8c09d3070107004c975 /llvm/docs/GoldPlugin.html
parentbe759256b961e9b598d6b6b1cc9b0e25b2002989 (diff)
downloadbcm5719-llvm-ca4231e353fd75eb149469d0e9d0ae8438238344.tar.gz
bcm5719-llvm-ca4231e353fd75eb149469d0e9d0ae8438238344.zip
Update the example to show that an archive can contain llvm bitcode.
llvm-svn: 75000
Diffstat (limited to 'llvm/docs/GoldPlugin.html')
-rw-r--r--llvm/docs/GoldPlugin.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/docs/GoldPlugin.html b/llvm/docs/GoldPlugin.html
index b5148ab3312..77a417f5710 100644
--- a/llvm/docs/GoldPlugin.html
+++ b/llvm/docs/GoldPlugin.html
@@ -127,8 +127,9 @@ void foo4(void) {
--- command lines ---
$ llvm-gcc -flto a.c -c -o a.o # &lt;-- a.o is LLVM bitcode file
+$ ar q a.a a.o # &lt;-- a.a is an archive with LLVM bitcode
$ llvm-gcc b.c -c -o b.o # &lt;-- b.o is native object file
-$ llvm-gcc -use-gold-plugin a.o b.o -o main # &lt;-- link with LLVMgold plugin
+$ llvm-gcc -use-gold-plugin a.a b.o -o main # &lt;-- link with LLVMgold plugin
</pre>
<p>Gold informs the plugin that foo3 is never referenced outside the IR,
leading LLVM to delete that function. However, unlike in the
OpenPOWER on IntegriCloud