Remove unnecessary and unused data member.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2011-09-29 16:48:44 +00:00
parent 7a50202be5
commit 8d6c0fb979
2 changed files with 2 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ GCOVFile::~GCOVFile() {
/// read - Read GCOV buffer. /// read - Read GCOV buffer.
bool GCOVFile::read(GCOVBuffer &Buffer) { bool GCOVFile::read(GCOVBuffer &Buffer) {
Format = Buffer.readGCOVFormat(); GCOVFormat Format = Buffer.readGCOVFormat();
if (Format == InvalidGCOV) if (Format == InvalidGCOV)
return false; return false;

View File

@@ -155,13 +155,12 @@ private:
/// GCOVFile - Collects file information. /// GCOVFile - Collects file information.
class GCOVFile { class GCOVFile {
public: public:
GCOVFile() : Format(InvalidGCOV) {} GCOVFile() {}
~GCOVFile(); ~GCOVFile();
bool read(GCOVBuffer &Buffer); bool read(GCOVBuffer &Buffer);
void dump(); void dump();
void collectLineCounts(FileInfo &FI); void collectLineCounts(FileInfo &FI);
private: private:
enum GCOVFormat Format;
SmallVector<GCOVFunction *, 16> Functions; SmallVector<GCOVFunction *, 16> Functions;
}; };