echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. I'm not sure about the whole "get length" aspect of the API, but I agree what you're doing makes as much sense as what's going on now. Thanks! -eric http://reviews.llvm.org/D21425