silvas added a comment. @rafael, could you comment on the high level design here? I think this is fairly reasonable but as with the other patches I think you may have a specific idea of the "right" way to do things. http://reviews.llvm.org/D18012