llvm-project/llvm/lib/Support/Windows
Jordan Rupprecht 97ea485041 [Support] NFC: Allow modifying access/modification times independently in sys::fs::setLastModificationAndAccessTime.
Summary:
Add an overload to sys::fs::setLastModificationAndAccessTime that allows setting last access and modification times separately. This will allow tools to use this API when they want to preserve both the access and modification times from an input file, which may be different.

Also note that both the POSIX (futimens/futimes) and Windows (SetFileTime) APIs take the two timestamps in the order of (1) access (2) modification time, so this renames the method to "setLastAccessAndModificationTime" to make it clear which timestamp is which.

For existing callers, the 1-arg overload just sets both timestamps to the same thing.

Subscribers: llvm-commits

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

llvm-svn: 339628
2018-08-13 23:03:45 +00:00
..
COM.inc
DynamicLibrary.inc Move some function declarations out of WindowsSupport.h 2018-06-01 22:23:46 +00:00
Host.inc [Support] Avoid normalization in sys::getDefaultTargetTriple 2018-05-25 20:39:37 +00:00
Memory.inc [Support] Support NetBSD PaX MPROTECT in sys::Memory. 2017-11-16 23:04:44 +00:00
Mutex.inc Remove more name space pollution from .inc files 2017-03-31 14:26:44 +00:00
Path.inc [Support] NFC: Allow modifying access/modification times independently in sys::fs::setLastModificationAndAccessTime. 2018-08-13 23:03:45 +00:00
Process.inc Do not enforce absolute path argv0 in windows 2018-06-13 14:29:26 +00:00
Program.inc Refactor ExecuteAndWait to take StringRefs. 2018-06-12 17:43:52 +00:00
RWMutex.inc Report fatal error in the case of out of memory 2018-02-20 05:41:26 +00:00
Signals.inc Move some function declarations out of WindowsSupport.h 2018-06-01 22:23:46 +00:00
ThreadLocal.inc Remove more name space pollution from .inc files 2017-03-31 14:26:44 +00:00
Threading.inc
Watchdog.inc
WindowsSupport.h Move some function declarations out of WindowsSupport.h 2018-06-01 22:23:46 +00:00
explicit_symbols.inc