summaryrefslogtreecommitdiff
path: root/docs/GoldPlugin.html
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2009-10-14 17:57:32 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2009-10-14 17:57:32 +0000
commit59850d0874429601812bc13408cb1f776649027c (patch)
treeb21f6de4e08b89bb7931806bab798fc2a5e3a686 /docs/GoldPlugin.html
parent18f153bdb9db52e7089a2d5293b96c45a3124a26 (diff)
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 b5148ab3312ed..77a417f5710d5 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