diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-09-20 17:19:52 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-09-20 17:19:52 +0000 |
| commit | 19a93ba81457afc4cd0e095b79d913e66c47cab9 (patch) | |
| tree | e60a99257d9a3dbfe0229d5fe89dda935ff75ee5 /llvm/include | |
| parent | 953e2407edb956eb846a79fc0dce08d032ea0d66 (diff) | |
| download | bcm5719-llvm-19a93ba81457afc4cd0e095b79d913e66c47cab9.tar.gz bcm5719-llvm-19a93ba81457afc4cd0e095b79d913e66c47cab9.zip | |
llvm-cov: Allow creating CoverageMappings from filenames
llvm-svn: 218185
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/ProfileData/CoverageMapping.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm/ProfileData/CoverageMapping.h b/llvm/include/llvm/ProfileData/CoverageMapping.h index 2dba5f4abd5..a7c124adf33 100644 --- a/llvm/include/llvm/ProfileData/CoverageMapping.h +++ b/llvm/include/llvm/ProfileData/CoverageMapping.h @@ -318,11 +318,15 @@ class CoverageMapping { CoverageMapping() : MismatchedFunctionCount(0) {} public: - /// Load the coverage mapping using the given readers. + /// \brief Load the coverage mapping using the given readers. static ErrorOr<std::unique_ptr<CoverageMapping>> load(ObjectFileCoverageMappingReader &CoverageReader, IndexedInstrProfReader &ProfileReader); + /// \brief Load the coverage mapping from the given files. + static ErrorOr<std::unique_ptr<CoverageMapping>> + load(StringRef ObjectFilename, StringRef ProfileFilename); + /// \brief The number of functions that couldn't have their profiles mapped. /// /// This is a count of functions whose profile is out of date or otherwise |

