summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-07-13 23:12:23 +0000
committerVedant Kumar <vsk@apple.com>2016-07-13 23:12:23 +0000
commitfa8c832177480fa7d7f2f5a85e777ed24ef0bcb1 (patch)
treec4846a810250d058e132b162036709d4692157aa /include
parent81c98a7118b7521951adff386ae3ee0aedf3f5ff (diff)
[Coverage] Mark a few methods const (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ProfileData/Coverage/CoverageMapping.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ProfileData/Coverage/CoverageMapping.h b/include/llvm/ProfileData/Coverage/CoverageMapping.h
index 10c728b7368..82006f828b7 100644
--- a/include/llvm/ProfileData/Coverage/CoverageMapping.h
+++ b/include/llvm/ProfileData/Coverage/CoverageMapping.h
@@ -416,7 +416,7 @@ public:
Expansions(std::move(RHS.Expansions)) {}
/// \brief Get the name of the file this data covers.
- StringRef getFilename() { return Filename; }
+ StringRef getFilename() const { return Filename; }
std::vector<CoverageSegment>::iterator begin() { return Segments.begin(); }
std::vector<CoverageSegment>::iterator end() { return Segments.end(); }
@@ -461,7 +461,7 @@ public:
/// The given filename must be the name as recorded in the coverage
/// information. That is, only names returned from getUniqueSourceFiles will
/// yield a result.
- CoverageData getCoverageForFile(StringRef Filename);
+ CoverageData getCoverageForFile(StringRef Filename) const;
/// \brief Gets all of the functions covered by this profile.
iterator_range<FunctionRecordIterator> getCoveredFunctions() const {