aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/SourceCoverageView.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2023-12-09 00:43:00 +0100
committerGitHub <noreply@github.com>2023-12-08 15:43:00 -0800
commit8615ead9a6d37e6353df1b652aadebe71ec6c242 (patch)
tree09296954ac1e9a4cfd1ba298556a92f08d52157d /llvm/tools/llvm-cov/SourceCoverageView.cpp
parent18f0da26b292341f84f91d4ce731b046315cd0a1 (diff)
downloadllvm-8615ead9a6d37e6353df1b652aadebe71ec6c242.zip
llvm-8615ead9a6d37e6353df1b652aadebe71ec6c242.tar.gz
llvm-8615ead9a6d37e6353df1b652aadebe71ec6c242.tar.bz2
[clang] NFCI: Make `ModuleFile::File` non-optional (#74892)
AFAICT, `ModuleFile::File` can be `std::nullopt` only for PCM files loaded from the standard input. This patch starts setting that variable to `FileManager::getSTDIN()` in that case, which makes it possible to remove the optionality, and also simplifies code that actually reads the file. This is part of an effort to get rid of `Optional{File,Directory}EntryRefDegradesTo{File,Directory}EntryPtr`.
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp')
0 files changed, 0 insertions, 0 deletions