From 8d6c0fb97910823db8307cc85059440a9dbadba9 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140786 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }; -- 2.34.1