Fix more VFS tests on Windows
authorAdrian McCarthy <amccarth@google.com>
Mon, 25 Nov 2019 23:57:21 +0000 (15:57 -0800)
committerAdrian McCarthy <amccarth@google.com>
Wed, 18 Dec 2019 19:38:04 +0000 (11:38 -0800)
commit738b5c9639b4323f75b03e21494bef13d9adfa86
treef347c81a0e5479c7d1d4cfa1a5f57feab2a9c5d7
parent12038be20ee6a903cdbd3fddce65535ef683e31d
Fix more VFS tests on Windows

Since VFS paths can be in either Posix or Windows style, we have to use
a more flexible definition of "absolute" path.

The key here is that FileSystem::makeAbsolute is now virtual, and the
RedirectingFileSystem override checks for either concept of absolute
before trying to make the path absolute by combining it with the current
directory.

Differential Revision: https://reviews.llvm.org/D70701
clang/test/VFS/vfsroot-include.c
clang/test/VFS/vfsroot-module.m
clang/test/VFS/vfsroot-with-overlay.c
llvm/include/llvm/Support/VirtualFileSystem.h
llvm/lib/Support/VirtualFileSystem.cpp