ruiu added a comment. I think this patch needs rewriting because it uses a callback function where you don't actually have to and uses Offset as a different meaning than it should be. I'll send you an updated one. https://reviews.llvm.org/D36520