[LLVMdev] producing a single LLVM bitcode file using the LLVM gold plugin

Cristian Zamfir cristian.zamfir at epfl.ch
Mon Jun 13 15:37:02 PDT 2011


Hello, 

Is it still possible to produce the LLVM bitcode after linking using the LLVM gold plugin?
I get the warning "ld: warning: Ignoring flag also-emit-llvm" and the LLVM bitcode is not dumped. 

I installed the LLVM gold plugin using the latest binutils from CVS and LLVM 2.6, since I read on the discussion list that this was possible with LLVM 2.6. 

This is the command I use:
lvm-gcc -Wall -g --emit-llvm -O4 -use-gold-plugin -Wl,-plugin-opt=also-emit-llvm  test.c f.c -o main
ld: warning: Ignoring flag also-emit-llvm

Can somebody please clarify if this option is still supported? If not, if anybody is working on enabling it again (or maybe have some tips on where to start) ?

Thank you.
Cristi






More information about the llvm-dev mailing list