[llvm-commits] [llvm] r140786 - in /llvm/trunk/tools/llvm-cov: GCOVReader.cpp GCOVReader.h
Devang Patel
dpatel at apple.com
Thu Sep 29 09:48:44 PDT 2011
Author: dpatel
Date: Thu Sep 29 11:48:44 2011
New Revision: 140786
URL: http://llvm.org/viewvc/llvm-project?rev=140786&view=rev
Log:
Remove unnecessary and unused data member.
Modified:
llvm/trunk/tools/llvm-cov/GCOVReader.cpp
llvm/trunk/tools/llvm-cov/GCOVReader.h
Modified: llvm/trunk/tools/llvm-cov/GCOVReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/GCOVReader.cpp?rev=140786&r1=140785&r2=140786&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/GCOVReader.cpp (original)
+++ llvm/trunk/tools/llvm-cov/GCOVReader.cpp Thu Sep 29 11:48:44 2011
@@ -29,7 +29,7 @@
/// read - Read GCOV buffer.
bool GCOVFile::read(GCOVBuffer &Buffer) {
- Format = Buffer.readGCOVFormat();
+ GCOVFormat Format = Buffer.readGCOVFormat();
if (Format == InvalidGCOV)
return false;
Modified: llvm/trunk/tools/llvm-cov/GCOVReader.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/GCOVReader.h?rev=140786&r1=140785&r2=140786&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/GCOVReader.h (original)
+++ llvm/trunk/tools/llvm-cov/GCOVReader.h Thu Sep 29 11:48:44 2011
@@ -155,13 +155,12 @@
/// 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;
};
More information about the llvm-commits
mailing list