[Windows] Simplify WindowsSupport.h
authorReid Kleckner <rnk@google.com>
Tue, 6 Nov 2018 23:39:59 +0000 (23:39 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 6 Nov 2018 23:39:59 +0000 (23:39 +0000)
commitc30932248fd73e7ada87ea832ccf7789826639bf
tree00244f9e7fc8377baeae05db39086dfebc8d4855
parent39b6ba9f3311854672fab754b6263c5db0bb9166
[Windows] Simplify WindowsSupport.h

Sink Windows version detection code from WindowsSupport.h to Path.inc.
These functions don't need to be inlined. I randomly picked Process.inc
for the Windows version helpers, since that's the most related file.

Sink MakeErrMsg to Program.inc since it's the main client.

Move those functions into the llvm namespace, and delete the scoped
handle copy and assignment operators.

Reviewers: zturner, aganea

Differential Revision: https://reviews.llvm.org/D54182

llvm-svn: 346280
llvm/lib/Support/Windows/Process.inc
llvm/lib/Support/Windows/Program.inc
llvm/lib/Support/Windows/WindowsSupport.h