Fix bug 5992: O'Caml's llvm_create_module was treating the context as a string.
[oota-llvm.git] / docs / GoldPlugin.html
index b5148ab3312edeef34d4448e6f0afbe3e1bfcc86..77a417f5710d54c168ec26d0269b9ee908d80e59 100644 (file)
@@ -127,8 +127,9 @@ void foo4(void) {
 
 --- 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