mirror of https://github.com/microsoft/clang.git
Remove a dead field. NFC.
Suggested by Adam Folwarczny! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301250 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
29f0cdc96e
commit
1e969193c2
|
@ -666,9 +666,6 @@ void CodeGenPGO::mapRegionCounters(const Decl *D) {
|
|||
}
|
||||
|
||||
bool CodeGenPGO::skipRegionMappingForDecl(const Decl *D) {
|
||||
if (SkipCoverageMapping)
|
||||
return true;
|
||||
|
||||
if (!D->getBody())
|
||||
return true;
|
||||
|
||||
|
|
|
@ -40,14 +40,11 @@ private:
|
|||
std::unique_ptr<llvm::InstrProfRecord> ProfRecord;
|
||||
std::vector<uint64_t> RegionCounts;
|
||||
uint64_t CurrentRegionCount;
|
||||
/// \brief A flag that is set to true when this function doesn't need
|
||||
/// to have coverage mapping data.
|
||||
bool SkipCoverageMapping;
|
||||
|
||||
public:
|
||||
CodeGenPGO(CodeGenModule &CGM)
|
||||
: CGM(CGM), NumValueSites({{0}}), NumRegionCounters(0),
|
||||
FunctionHash(0), CurrentRegionCount(0), SkipCoverageMapping(false) {}
|
||||
: CGM(CGM), NumValueSites({{0}}), NumRegionCounters(0), FunctionHash(0),
|
||||
CurrentRegionCount(0) {}
|
||||
|
||||
/// Whether or not we have PGO region data for the current function. This is
|
||||
/// false both when we have no data at all and when our data has been
|
||||
|
|
Loading…
Reference in New Issue