compnerd added a comment. I think it would be better if we could actually create a helper to get the profiling library name for a specific library, and use that in both locations. Do we have a test for the math case at the very least? http://reviews.llvm.org/D16264