OSDN Git Service

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 cf01078..e4570b1 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 1e0807a..67199db 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;
 };