I think it's usually the opposite, you add the function and then the uses separately. I think I might need this at some point, but for the case I mentioned I have a better idea (http://llvm-reviews.chandlerc.com/D1669) http://llvm-reviews.chandlerc.com/D1665