diff options
author | Vedant Kumar <vsk@apple.com> | 2016-09-22 21:49:47 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-09-22 21:49:47 +0000 |
commit | ae0e243fb0e2258b96cc5d4fd8232f9014fbe358 (patch) | |
tree | 516f47ddc7af4ecebbd23330eb5ffbc36fb9b6de /tools/llvm-cov/CodeCoverage.cpp | |
parent | ef76be0d1ea84318380190b68f5c31f914c544a4 (diff) |
[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
Diffstat (limited to 'tools/llvm-cov/CodeCoverage.cpp')
-rw-r--r-- | tools/llvm-cov/CodeCoverage.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
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<int(int, const char **)> 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<StringRef> 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<std::string> RemappedFilenames; + + /// The architecture the coverage mapping data targets. std::string CoverageArch; -private: /// A cache for demangled symbol names. StringMap<std::string> DemangledNames; |