aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-12-04 19:47:13 -0800
committerKazu Hirata <kazu@google.com>2022-12-04 19:47:13 -0800
commit595f1a6aaf5465fd71884b1557b4451be4e6a282 (patch)
tree54053944e3de7d5e1e51132cb5678a13d7e889d6 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parent47edc70866920693d99e5b31014ba761a796d181 (diff)
downloadllvm-595f1a6aaf5465fd71884b1557b4451be4e6a282.zip
llvm-595f1a6aaf5465fd71884b1557b4451be4e6a282.tar.gz
llvm-595f1a6aaf5465fd71884b1557b4451be4e6a282.tar.bz2
[llvm] Use std::nullopt instead of None in comments (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
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
-rw-r--r--llvm/lib/ProfileData/Coverage/CoverageMapping.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
index 51a2503..ac36650 100644
--- a/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
+++ b/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
@@ -689,7 +689,8 @@ static Optional<unsigned> findMainViewFileID(const FunctionRecord &Function) {
}
/// Check if SourceFile is the file that contains the definition of
-/// the Function. Return the ID of the file in that case or None otherwise.
+/// the Function. Return the ID of the file in that case or std::nullopt
+/// otherwise.
static Optional<unsigned> findMainViewFileID(StringRef SourceFile,
const FunctionRecord &Function) {
Optional<unsigned> I = findMainViewFileID(Function);