profiling with llvm-gcc4?

How can I do function profiling and BB profiling with current llvm and

runtime/libprofile is disabled when using llvm-gcc4, but... is there any
alternative to linking with

How can I use llvm-prof? is utils/ obsolete?

Thanks in advance,


The profiling support in LLVM hasn't been used for quite a while, so it may have bitrotted slightly. However, the support should basically work, so it shouldn't take much to bring it back to life.


Thank you, it seems working again with this simple patch:

Index: runtime/Makefile

Thanks, I applied your patches!