Skip to content

Commit

Permalink
[unittests] Delete some copy constructors (NFC)
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284066 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
vedantk committed Oct 12, 2016
1 parent 3d62534 commit f466ec4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions unittests/ProfileData/CoverageMappingTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f466ec4

Please sign in to comment.