This reverts commit 8b8be6f3 and follow-ups 99a93c3a, a9c0bf04, 48ac5b48. It breaks building on Windows, see https://reviews.llvm.org/D86917#2255872