llvm.org GIT mirror llvm / fa8c832
[Coverage] Mark a few methods const (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275337 91177308-0d34-0410-b5e6-96231b3b80d8 Vedant Kumar 4 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
415415 Expansions(std::move(RHS.Expansions)) {}
416416
417417 /// \brief Get the name of the file this data covers.
418 StringRef getFilename() { return Filename; }
418 StringRef getFilename() const { return Filename; }
419419
420420 std::vector::iterator begin() { return Segments.begin(); }
421421 std::vector::iterator end() { return Segments.end(); }
460460 /// The given filename must be the name as recorded in the coverage
461461 /// information. That is, only names returned from getUniqueSourceFiles will
462462 /// yield a result.
463 CoverageData getCoverageForFile(StringRef Filename);
463 CoverageData getCoverageForFile(StringRef Filename) const;
464464
465465 /// \brief Gets all of the functions covered by this profile.
466466 iterator_range getCoveredFunctions() const {
455455 return R.Kind == CounterMappingRegion::ExpansionRegion && R.FileID == FileID;
456456 }
457457
458 CoverageData CoverageMapping::getCoverageForFile(StringRef Filename) {
458 CoverageData CoverageMapping::getCoverageForFile(StringRef Filename) const {
459459 CoverageData FileCoverage(Filename);
460460 std::vector Regions;
461461