t.p.northover added a comment. Thanks for the comments. I've committed basically the original version of the https://reviews.llvm.org/D40404 (modulo `DEBUG` -> `LLVM_DEBUG` renaming) as r339009. Repository: rL LLVM https://reviews.llvm.org/D50232