[llvm] r257748 - Rename local variable to avoid conflict
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 13 22:38:52 PST 2016
Author: davidxl
Date: Thu Jan 14 00:38:52 2016
New Revision: 257748
URL: http://llvm.org/viewvc/llvm-project?rev=257748&view=rev
Log:
Rename local variable to avoid conflict
Modified:
llvm/trunk/lib/ProfileData/CoverageMappingReader.cpp
Modified: llvm/trunk/lib/ProfileData/CoverageMappingReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/CoverageMappingReader.cpp?rev=257748&r1=257747&r2=257748&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/CoverageMappingReader.cpp (original)
+++ llvm/trunk/lib/ProfileData/CoverageMappingReader.cpp Thu Jan 14 00:38:52 2016
@@ -322,12 +322,12 @@ struct CovMapFuncRecordReader {
};
// A class for reading coverage mapping function records for a module.
-template <coverage::CovMapVersion CovMapVersion, class IntPtrT,
+template <coverage::CovMapVersion Version, class IntPtrT,
support::endianness Endian>
class VersionedCovMapFuncRecordReader : public CovMapFuncRecordReader {
typedef typename coverage::CovMapTraits<
- CovMapVersion, IntPtrT>::CovMapFuncRecordType FuncRecordType;
- typedef typename coverage::CovMapTraits<CovMapVersion, IntPtrT>::NameRefType
+ Version, IntPtrT>::CovMapFuncRecordType FuncRecordType;
+ typedef typename coverage::CovMapTraits<Version, IntPtrT>::NameRefType
NameRefType;
llvm::DenseSet<NameRefType> UniqueFunctionMappingData;
@@ -352,7 +352,7 @@ public:
uint32_t NRecords = CovHeader->getNRecords<Endian>();
uint32_t FilenamesSize = CovHeader->getFilenamesSize<Endian>();
uint32_t CoverageSize = CovHeader->getCoverageSize<Endian>();
- assert((CovMapVersion)CovHeader->getVersion<Endian>() == CovMapVersion);
+ assert((CovMapVersion)CovHeader->getVersion<Endian>() == Version);
Buf = reinterpret_cast<const char *>(CovHeader + 1);
// Skip past the function records, saving the start and end for later.
@@ -404,7 +404,7 @@ public:
CFR->template getFuncName<Endian>(ProfileNames, FuncName))
return EC;
Records.push_back(BinaryCoverageReader::ProfileMappingRecord(
- CovMapVersion, FuncName, FuncHash, Mapping, FilenamesBegin,
+ Version, FuncName, FuncHash, Mapping, FilenamesBegin,
Filenames.size() - FilenamesBegin));
CFR++;
}
More information about the llvm-commits
mailing list