aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ProfileData/CoverageMappingTest.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-10-12 22:27:54 +0000
committerVedant Kumar <vsk@apple.com>2016-10-12 22:27:54 +0000
commitb13ed136bb47a90fb27faf44c81a444d2feb6bbe (patch)
tree03e6699e5da6eaaf43d6d69e43b061c440b586ae /llvm/unittests/ProfileData/CoverageMappingTest.cpp
parent9a4abceb8c0f9339c4f23dfe991f4f0030f769dc (diff)
downloadllvm-b13ed136bb47a90fb27faf44c81a444d2feb6bbe.zip
llvm-b13ed136bb47a90fb27faf44c81a444d2feb6bbe.tar.gz
llvm-b13ed136bb47a90fb27faf44c81a444d2feb6bbe.tar.bz2
[unittests] Delete some copy constructors (NFC)
llvm-svn: 284066
Diffstat (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp')
-rw-r--r--llvm/unittests/ProfileData/CoverageMappingTest.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp
index b12935f..bac72f2 100644
--- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp
+++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp
@@ -55,6 +55,17 @@ struct OutputFunctionCoverageData {
std::vector<StringRef> Filenames;
std::vector<CounterMappingRegion> Regions;
+ OutputFunctionCoverageData() : Hash(0) {}
+
+ OutputFunctionCoverageData(OutputFunctionCoverageData &&OFCD)
+ : Name(OFCD.Name), Hash(OFCD.Hash), Filenames(std::move(OFCD.Filenames)),
+ Regions(std::move(OFCD.Regions)) {}
+
+ OutputFunctionCoverageData(const OutputFunctionCoverageData &) = delete;
+ OutputFunctionCoverageData &
+ operator=(const OutputFunctionCoverageData &) = delete;
+ OutputFunctionCoverageData &operator=(OutputFunctionCoverageData &&) = delete;
+
void fillCoverageMappingRecord(CoverageMappingRecord &Record) const {
Record.FunctionName = Name;
Record.FunctionHash = Hash;