rnk added a comment. I think it would be better if Config->OutputFile is always either empty or the true final output name. Otherwise we might query it somewhere in the middle of options processing and get an incorrect value. https://reviews.llvm.org/D31152