Remove unnecessary and unused data member.
authorDevang Patel <dpatel@apple.com>
Thu, 29 Sep 2011 16:48:44 +0000 (16:48 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 29 Sep 2011 16:48:44 +0000 (16:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140786 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-cov/GCOVReader.cpp
tools/llvm-cov/GCOVReader.h

index cf01078462b2553db693769bedb625b2dfe71d44..e4570b1229f9595138d44f558626c6cbfc77062b 100644 (file)
@@ -29,7 +29,7 @@ GCOVFile::~GCOVFile() {
 
 /// read - Read GCOV buffer.
 bool GCOVFile::read(GCOVBuffer &Buffer) {
-  Format = Buffer.readGCOVFormat();
+  GCOVFormat Format = Buffer.readGCOVFormat();
   if (Format == InvalidGCOV)
     return false;
 
index 1e0807a03c2037434f3bd55c051085b80c0538a6..67199db142bd662c16024b90ef9b1e79baa19727 100644 (file)
@@ -155,13 +155,12 @@ private:
 /// GCOVFile - Collects file information.
 class GCOVFile {
 public:
-  GCOVFile() : Format(InvalidGCOV) {}
+  GCOVFile() {}
   ~GCOVFile();
   bool read(GCOVBuffer &Buffer);
   void dump();
   void collectLineCounts(FileInfo &FI);
 private:
-  enum GCOVFormat Format;
   SmallVector<GCOVFunction *, 16> Functions;
 };