[unittests] Use coveragemap_error in CoverageMappingReaderMock (NFC)

llvm-svn: 269324
This commit is contained in:
Vedant Kumar 2016-05-12 19:01:11 +00:00
parent 9f768c1e2c
commit 76590792bb

View File

@ -72,12 +72,12 @@ struct CoverageMappingReaderMock : CoverageMappingReader {
std::error_code readNextRecord(CoverageMappingRecord &Record) override {
if (Functions.empty())
return instrprof_error::eof;
return coveragemap_error::eof;
Functions.front().fillCoverageMappingRecord(Record);
Functions = Functions.slice(1);
return instrprof_error::success;
return coveragemap_error::success;
}
};