echristo added a comment. This is pretty terrible and gets into maintenance of the C API questions. That said, if you want to keep the API around for a bit why not just create a new one every time? -eric http://reviews.llvm.org/D12263