597376b4b1
There are various points where system functions are called via OS-specific wrappers beginning with llvm::sys::fs. As part of the development of the HLSL shader compiler, some of the microsoft versions were altered to call into a further abstraction via the MSFileSystem interface. In certain cases, this allows non-existent "included" files to be accessed with the outward appearance of being real files. However, many of these changes were missed by the Unix abstraction. This adds them in with the facilitator of adding a few functions to the MSFilesystem abstraction that better match Unix system calls. Needed for various tests that provide fake source files to compile and include fake headers from within HLSL code. Otherwise, these files are not found because they are not on the filesystem. The Unix-like methods are added because in cases where the current filesystem abstraction just calls the system calls directly, the windows-style accesses were cumbersome and incomplete. Tablegen and some tests make use of these simpler implementations. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
MSFileSystemImpl.cpp |