[llvm] r284069 - [unittests] Delete even more copy constructors (NFC)
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 12 15:44:50 PDT 2016
Author: vedantk
Date: Wed Oct 12 17:44:50 2016
New Revision: 284069
URL: http://llvm.org/viewvc/llvm-project?rev=284069&view=rev
Log:
[unittests] Delete even more copy constructors (NFC)
Modified:
llvm/trunk/unittests/ProfileData/CoverageMappingTest.cpp
Modified: llvm/trunk/unittests/ProfileData/CoverageMappingTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ProfileData/CoverageMappingTest.cpp?rev=284069&r1=284068&r2=284069&view=diff
==============================================================================
--- llvm/trunk/unittests/ProfileData/CoverageMappingTest.cpp (original)
+++ llvm/trunk/unittests/ProfileData/CoverageMappingTest.cpp Wed Oct 12 17:44:50 2016
@@ -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 {
More information about the llvm-commits
mailing list