[llvm-cov] Use std::optional in CodeCoverage.cpp (NFC)

This is part of an effort to migrate from llvm::Optional to
std::optional:

https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
This commit is contained in:
Kazu Hirata 2022-11-26 18:42:47 -08:00
parent fc93812a11
commit f64505c0f2

View File

@ -41,6 +41,7 @@
#include <functional>
#include <map>
#include <optional>
#include <system_error>
using namespace llvm;
@ -157,7 +158,7 @@ private:
/// The coverage data path to be remapped from, and the source path to be
/// remapped to, when using -path-equivalence.
Optional<std::pair<std::string, std::string>> PathRemapping;
std::optional<std::pair<std::string, std::string>> PathRemapping;
/// File status cache used when finding the same file.
StringMap<Optional<sys::fs::file_status>> FileStatusCache;