diff options
Diffstat (limited to 'contrib/llvm-project/llvm/include/llvm/Support/LockFileManager.h')
-rw-r--r-- | contrib/llvm-project/llvm/include/llvm/Support/LockFileManager.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/llvm-project/llvm/include/llvm/Support/LockFileManager.h b/contrib/llvm-project/llvm/include/llvm/Support/LockFileManager.h index ab66621e6756..92c7ceed6a92 100644 --- a/contrib/llvm-project/llvm/include/llvm/Support/LockFileManager.h +++ b/contrib/llvm-project/llvm/include/llvm/Support/LockFileManager.h @@ -8,8 +8,8 @@ #ifndef LLVM_SUPPORT_LOCKFILEMANAGER_H #define LLVM_SUPPORT_LOCKFILEMANAGER_H -#include "llvm/ADT/Optional.h" #include "llvm/ADT/SmallString.h" +#include <optional> #include <system_error> #include <utility> // for std::pair @@ -54,14 +54,14 @@ private: SmallString<128> LockFileName; SmallString<128> UniqueLockFileName; - Optional<std::pair<std::string, int> > Owner; + std::optional<std::pair<std::string, int>> Owner; std::error_code ErrorCode; std::string ErrorDiagMsg; LockFileManager(const LockFileManager &) = delete; LockFileManager &operator=(const LockFileManager &) = delete; - static Optional<std::pair<std::string, int> > + static std::optional<std::pair<std::string, int>> readLockFile(StringRef LockFileName); static bool processStillExecuting(StringRef Hostname, int PID); |