I think the patch is hard to review because it's a collection of unrelated additions to the C API. I'll be happy to review the patch if you splitted it. http://reviews.llvm.org/D2176