[LLVMdev] Error while compiling mysql using LLVM-gold
espindola at google.com
Sun Jun 6 19:28:14 PDT 2010
> Thanks Rafael. With the local compiled llvm-gcc, it compiles now, and
> "-Wl,-debug" gives reasonable output. However, I still do not see the
> bitcode file for those large software like apache while complied using the
> gold plugin...
Normally it is all done in the plugin. Are you passing -emit-llvm to
llvm-gcc? If so, running file in one of the .o should show "data" and
you can get a combined bitcode file by passing
-Wl,-plugin-opt=also-emit-llvm to the final link line. So if you do
gcc a.o b.o -o foo -Wl,-plugin-opt=also-emit-llvm
you will get two files, foo and foo.bc. The first one is an elf file,
the second one is bitcode.
Rafael Ávila de Espíndola
More information about the llvm-dev