[llvm-commits] [llvm] r75000 - /llvm/trunk/docs/GoldPlugin.html

Rafael Espindola rafael.espindola at gmail.com
Wed Jul 8 04:13:48 PDT 2009


Author: rafael
Date: Wed Jul  8 06:13:34 2009
New Revision: 75000

URL: http://llvm.org/viewvc/llvm-project?rev=75000&view=rev
Log:
Update the example to show that an archive can contain llvm bitcode.

Modified:
    llvm/trunk/docs/GoldPlugin.html

Modified: llvm/trunk/docs/GoldPlugin.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/GoldPlugin.html?rev=75000&r1=74999&r2=75000&view=diff

==============================================================================
--- llvm/trunk/docs/GoldPlugin.html (original)
+++ llvm/trunk/docs/GoldPlugin.html Wed Jul  8 06:13:34 2009
@@ -127,8 +127,9 @@
 
 --- command lines ---
 $ llvm-gcc -flto a.c -c -o a.o              # <-- a.o is LLVM bitcode file
+$ ar q a.a a.o                              # <-- a.a is an archive with LLVM bitcode
 $ llvm-gcc b.c -c -o b.o                    # <-- b.o is native object file
-$ llvm-gcc -use-gold-plugin a.o b.o -o main # <-- link with LLVMgold plugin
+$ llvm-gcc -use-gold-plugin a.a b.o -o main # <-- 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





More information about the llvm-commits mailing list