diff options
author | Vedant Kumar <vsk@apple.com> | 2016-10-12 22:44:50 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-10-12 22:44:50 +0000 |
commit | 1edd169e4b78dfcb0a082396b9a8e61e2cd21132 (patch) | |
tree | 8b5a5530217a082dd2e155aa85ecdedfbf330461 /llvm/unittests/ProfileData/CoverageMappingTest.cpp | |
parent | 05384080df67096cb43885df900745c932b2fd3c (diff) | |
download | llvm-1edd169e4b78dfcb0a082396b9a8e61e2cd21132.zip llvm-1edd169e4b78dfcb0a082396b9a8e61e2cd21132.tar.gz llvm-1edd169e4b78dfcb0a082396b9a8e61e2cd21132.tar.bz2 |
[unittests] Delete even more copy constructors (NFC)
llvm-svn: 284069
Diffstat (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp')
-rw-r--r-- | llvm/unittests/ProfileData/CoverageMappingTest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/unittests/ProfileData/CoverageMappingTest.cpp b/llvm/unittests/ProfileData/CoverageMappingTest.cpp index bac72f2..5c14807 100644 --- a/llvm/unittests/ProfileData/CoverageMappingTest.cpp +++ b/llvm/unittests/ProfileData/CoverageMappingTest.cpp @@ -106,6 +106,16 @@ struct InputFunctionCoverageData { InputFunctionCoverageData(std::string Name, uint64_t Hash) : Name(std::move(Name)), Hash(Hash) {} + + InputFunctionCoverageData(InputFunctionCoverageData &&IFCD) + : ReverseVirtualFileMapping(std::move(IFCD.ReverseVirtualFileMapping)), + Name(std::move(IFCD.Name)), Hash(IFCD.Hash), + Regions(std::move(IFCD.Regions)) {} + + InputFunctionCoverageData(const InputFunctionCoverageData &) = delete; + InputFunctionCoverageData & + operator=(const InputFunctionCoverageData &) = delete; + InputFunctionCoverageData &operator=(InputFunctionCoverageData &&) = delete; }; struct CoverageMappingTest : ::testing::Test { |