profiling with llvm-gcc4?

How can I do function profiling and BB profiling with current llvm and
llvm-gcc4?

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

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

Thanks in advance,

josem

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.

-Chris

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

Index: runtime/Makefile

Thanks, I applied your patches!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070910/053407.html
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070910/053409.html

-Chris