1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/lib/Support/Windows
Hans Wennborg 322242289e Win: handle \\?\UNC\ prefix in realPathFromHandle (PR43204)
After r361885, realPathFromHandle() ends up getting called on the working
directory on each Clang invocation. This unveiled that the code didn't work for
paths on network shares.

For example, if one maps the local dir c:\src\tmp to x:

  net use x: \\localhost\c$\tmp

and run e.g. "clang -c foo.cc" in x:\, realPathFromHandle will get
\\?\UNC\localhost\c$\src\tmp\ back from GetFinalPathNameByHandleW, and would
strip off the initial \\?\ prefix, ending up with a path that doesn't work.

This patch makes the prefix stripping a little smarter to handle this case.

Differential revision: https://reviews.llvm.org/D67166

llvm-svn: 371035
2019-09-05 09:07:05 +00:00
..
COM.inc
DynamicLibrary.inc
explicit_symbols.inc Remove support for unsupported MSVC versions 2019-08-02 23:09:01 +00:00
Host.inc
Memory.inc
Path.inc Win: handle \\?\UNC\ prefix in realPathFromHandle (PR43204) 2019-09-05 09:07:05 +00:00
Process.inc
Program.inc Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
Signals.inc Support for dumping current PrettyStackTrace on SIGINFO (Ctrl-T) 2019-07-12 16:05:09 +00:00
Threading.inc
ThreadLocal.inc
Watchdog.inc
WindowsSupport.h