From: Vedant Kumar Date: Thu, 22 Sep 2016 21:49:47 +0000 (+0000) Subject: [llvm-cov] Document some fields in a class (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae0e243fb0e2258b96cc5d4fd8232f9014fbe358;p=llvm [llvm-cov] Document some fields in a class (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282203 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-cov/CodeCoverage.cpp b/tools/llvm-cov/CodeCoverage.cpp index c16bfcccde0..237d877cde1 100644 --- a/tools/llvm-cov/CodeCoverage.cpp +++ b/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;