I believe that inreplace is more viable way. To fix this in a way that it could be configurable would be not trivial to implement and might not even be wanted (it would cause maintenance burden on llvm folks, since it would add new feature to build system which requires testing during releases) and would require at least requires prior communication with llvm community.