aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit91f935e75147d70185b3443a47718b3f6a812059 (patch)
treec846c32f7e7d5a3a944dd97dee877670d7fab7dc /docs/GoldPlugin.html
parent13223c98f2fa63c7d718287313c328a813509839 (diff)
downloadexternal_llvm-91f935e75147d70185b3443a47718b3f6a812059.zip
external_llvm-91f935e75147d70185b3443a47718b3f6a812059.tar.gz
external_llvm-91f935e75147d70185b3443a47718b3f6a812059.tar.bz2
Update the example to show that an archive can contain llvm bitcode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75000 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/GoldPlugin.html')
-rw-r--r--docs/GoldPlugin.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/GoldPlugin.html b/docs/GoldPlugin.html
index b5148ab..77a417f 100644
--- a/docs/GoldPlugin.html
+++ b/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