From 4610367cdfc25caa6d15ee7befe78b196f05cf49 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Thu, 22 Sep 2016 21:49:47 +0000 Subject: [PATCH] [llvm-cov] Document some fields in a class (NFC) llvm-svn: 282203 --- llvm/tools/llvm-cov/CodeCoverage.cpp | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/llvm/tools/llvm-cov/CodeCoverage.cpp b/llvm/tools/llvm-cov/CodeCoverage.cpp index c16bfcc..237d877 100644 --- a/llvm/tools/llvm-cov/CodeCoverage.cpp +++ b/llvm/tools/llvm-cov/CodeCoverage.cpp @@ -55,6 +55,9 @@ public: Export }; + int run(Command Cmd, int argc, const char **argv); + +private: /// \brief Print the error message to the error output stream. void error(const Twine &Message, StringRef Whence = ""); @@ -94,8 +97,6 @@ public: /// \brief Demangle \p Sym if possible. Otherwise, just return \p Sym. StringRef getSymbolForHumans(StringRef Sym) const; - int run(Command Cmd, int argc, const char **argv); - typedef llvm::function_ref CommandLineParserType; int show(int argc, const char **argv, @@ -109,14 +110,24 @@ public: std::string ObjectFilename; CoverageViewOptions ViewOpts; - std::string PGOFilename; CoverageFiltersMatchAll Filters; + + /// The path to the indexed profile. + std::string PGOFilename; + + /// A list of input source files. std::vector SourceFiles; + + /// Whether or not we're in -filename-equivalence mode. bool CompareFilenamesOnly; + + /// In -filename-equivalence mode, this maps absolute paths from the + /// coverage mapping data to input source files. StringMap RemappedFilenames; + + /// The architecture the coverage mapping data targets. std::string CoverageArch; -private: /// A cache for demangled symbol names. StringMap DemangledNames; -- 2.7.4