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