diff options
| author | Vedant Kumar <vsk@apple.com> | 2016-07-13 23:12:26 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2016-07-13 23:12:26 +0000 |
| commit | ef345e1d3f982ef1c88fa363a6bec568b804ce1c (patch) | |
| tree | 57e711101542a9cdcf3bc870c2f924f3ff42b344 | |
| parent | 7fcc5472e26deef457fd615253fab1ec9483cfa3 (diff) | |
| download | bcm5719-llvm-ef345e1d3f982ef1c88fa363a6bec568b804ce1c.tar.gz bcm5719-llvm-ef345e1d3f982ef1c88fa363a6bec568b804ce1c.zip | |
[Coverage] Return an ArrayRef to avoid copies (NFC)
llvm-svn: 275338
| -rw-r--r-- | llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h b/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h index 82006f828b7..cb0e17b94f9 100644 --- a/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h +++ b/llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h @@ -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. |

