[llvm] r275338 - [Coverage] Return an ArrayRef to avoid copies (NFC)
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 13 16:12:26 PDT 2016
Author: vedantk
Date: Wed Jul 13 18:12:26 2016
New Revision: 275338
URL: http://llvm.org/viewvc/llvm-project?rev=275338&view=rev
Log:
[Coverage] Return an ArrayRef to avoid copies (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=275338&r1=275337&r2=275338&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ProfileData/Coverage/CoverageMapping.h (original)
+++ llvm/trunk/include/llvm/ProfileData/Coverage/CoverageMapping.h Wed Jul 13 18:12:26 2016
@@ -423,7 +423,7 @@ public:
bool empty() { return Segments.empty(); }
/// \brief Expansions that can be further processed.
- std::vector<ExpansionRecord> getExpansions() { return Expansions; }
+ ArrayRef<ExpansionRecord> getExpansions() { return Expansions; }
};
/// \brief The mapping of profile information to coverage data.
More information about the llvm-commits
mailing list