diff options
Diffstat (limited to 'llvm/tools/llvm-cov/CoverageViewOptions.h')
-rw-r--r-- | llvm/tools/llvm-cov/CoverageViewOptions.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/tools/llvm-cov/CoverageViewOptions.h b/llvm/tools/llvm-cov/CoverageViewOptions.h index 45f2d813987..8e852459771 100644 --- a/llvm/tools/llvm-cov/CoverageViewOptions.h +++ b/llvm/tools/llvm-cov/CoverageViewOptions.h @@ -35,6 +35,9 @@ struct CoverageViewOptions { std::string ShowOutputDirectory; std::vector<std::string> DemanglerOpts; uint32_t TabSize; + std::string ProjectTitle; + std::string ObjectFilename; + std::string CreatedTimeStr; /// \brief Change the output's stream color if the colors are enabled. ColoredRawOstream colored_ostream(raw_ostream &OS, @@ -47,6 +50,12 @@ struct CoverageViewOptions { /// \brief Check if a demangler has been specified. bool hasDemangler() const { return !DemanglerOpts.empty(); } + + /// \brief Check if a project title has been specified. + bool hasProjectTitle() const { return !ProjectTitle.empty(); } + + /// \brief Check if the created time of the profile data file is available. + bool hasCreatedTime() const { return !CreatedTimeStr.empty(); } }; } |