Use the new sys::path::is_style_posix() and is_style_windows() in a few
places that need to detect the system's native path style.
In llvm/lib/Support/Path.cpp, this patch removes most uses of the
private real_style(), where is_style_posix() and is_style_windows()
are just a little tidier.
Elsewhere, this removes _WIN32 macro checks. Added a FIXME to a
FileManagerTest that seemed fishy, but maintained the existing
behaviour.
Happy to split this up as much as makes sense. Mainly posting to show
examples for https://reviews.llvm.org/D112288.
This introduced a use-after-scope for DirNameStr. Fixed in 9091df5fad52ab6a281d7f4d6a508696e6f9fbae.