We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be75925 commit ca4231eCopy full SHA for ca4231e
llvm/docs/GoldPlugin.html
@@ -127,8 +127,9 @@
127
128
--- command lines ---
129
$ llvm-gcc -flto a.c -c -o a.o # <-- a.o is LLVM bitcode file
130
+$ ar q a.a a.o # <-- a.a is an archive with LLVM bitcode
131
$ 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
132
+$ llvm-gcc -use-gold-plugin a.a b.o -o main # <-- link with LLVMgold plugin
133
</pre>
134
<p>Gold informs the plugin that foo3 is never referenced outside the IR,
135
leading LLVM to delete that function. However, unlike in the
0 commit comments