Remove a dead field. NFC.
authorVedant Kumar <vsk@apple.com>
Mon, 24 Apr 2017 20:54:36 +0000 (20:54 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 24 Apr 2017 20:54:36 +0000 (20:54 +0000)
Suggested by Adam Folwarczny!

llvm-svn: 301250

clang/lib/CodeGen/CodeGenPGO.cpp
clang/lib/CodeGen/CodeGenPGO.h

index 96fc145..9e19353 100644 (file)
@@ -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;
 
index 0026df5..0759e65 100644 (file)
@@ -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