From 0729c184443fdccac2371924f47e93c1b4bb11de Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 29 Sep 2011 16:48:44 +0000 Subject: [PATCH] Remove unnecessary and unused data member. llvm-svn: 140786 --- tools/llvm-cov/GCOVReader.cpp | 2 +- tools/llvm-cov/GCOVReader.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/llvm-cov/GCOVReader.cpp b/tools/llvm-cov/GCOVReader.cpp index cf01078462b..e4570b1229f 100644 --- a/tools/llvm-cov/GCOVReader.cpp +++ b/tools/llvm-cov/GCOVReader.cpp @@ -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; diff --git a/tools/llvm-cov/GCOVReader.h b/tools/llvm-cov/GCOVReader.h index 1e0807a03c2..67199db142b 100644 --- a/tools/llvm-cov/GCOVReader.h +++ b/tools/llvm-cov/GCOVReader.h @@ -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 Functions; };