[llvm] r276474 - [Coverage] Mark more methods const (NFC)
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 14:11:55 PDT 2016
Author: vedantk
Date: Fri Jul 22 16:11:55 2016
New Revision: 276474
URL: http://llvm.org/viewvc/llvm-project?rev=276474&view=rev
Log:
[Coverage] Mark more methods const (NFC)
Modified:
llvm/trunk/include/llvm/ProfileData/Coverage/CoverageMapping.h
Modified: llvm/trunk/include/llvm/ProfileData/Coverage/CoverageMapping.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ProfileData/Coverage/CoverageMapping.h?rev=276474&r1=276473&r2=276474&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ProfileData/Coverage/CoverageMapping.h (original)
+++ llvm/trunk/include/llvm/ProfileData/Coverage/CoverageMapping.h Fri Jul 22 16:11:55 2016
@@ -418,12 +418,16 @@ public:
/// \brief Get the name of the file this data covers.
StringRef getFilename() const { return Filename; }
- std::vector<CoverageSegment>::iterator begin() { return Segments.begin(); }
- std::vector<CoverageSegment>::iterator end() { return Segments.end(); }
- bool empty() { return Segments.empty(); }
+ std::vector<CoverageSegment>::const_iterator begin() const {
+ return Segments.begin();
+ }
+ std::vector<CoverageSegment>::const_iterator end() const {
+ return Segments.end();
+ }
+ bool empty() const { return Segments.empty(); }
/// \brief Expansions that can be further processed.
- ArrayRef<ExpansionRecord> getExpansions() { return Expansions; }
+ ArrayRef<ExpansionRecord> getExpansions() const { return Expansions; }
};
/// \brief The mapping of profile information to coverage data.
More information about the llvm-commits
mailing list