mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
InstrProf: Simplify some logic by using ArrayRef::slice (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227898 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cba5c599e8
commit
11f57c9068
@ -543,7 +543,7 @@ ObjectFileCoverageMappingReader::readNextRecord(CoverageMappingRecord &Record) {
|
||||
auto &R = MappingRecords[CurrentRecord];
|
||||
RawCoverageMappingReader Reader(
|
||||
R.FunctionName, R.CoverageMapping,
|
||||
makeArrayRef(Filenames.data() + R.FilenamesBegin, R.FilenamesSize),
|
||||
makeArrayRef(Filenames).slice(R.FilenamesBegin, R.FilenamesSize),
|
||||
FunctionsFilenames, Expressions, MappingRegions);
|
||||
if (auto Err = Reader.read(Record))
|
||||
return Err;
|
||||
|
Loading…
Reference in New Issue
Block a user