[LLVMdev] how to output the single bitcode file using gold plugin?

xiaoming gu xiaoming.gu at gmail.com
Mon Oct 4 22:34:21 PDT 2010


Hi, all. I want to get the single bitcode file after link-time
optimizations. After doing some searching, I get commands as follows:

*llvm-gcc -O4 -c xxx.c -o xxx.o
llvm-gcc xxx.o -use-gold-plugin -Wl,-debug -Wl,-plugin-opt=also-emit-llvm
-lm -o xxx*

But these command don't give me the wanted bitcode file. The used version of
llvm is 2.7.

Do you have any idea of this problem or any other solution to get the
bitcode file with gold plugin? Thanks.

Xiaoming
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101005/42eda4fb/attachment.html>


More information about the llvm-dev mailing list