Sorry for the latency, I was away for a few days. Anyway, the target-independent part LGTM. The const really should have been there to begin with, thanks! :-) http://reviews.llvm.org/D9156 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/