llvm-cov: Capitalized GCNO and GCDA for consistency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Yuchen Wu 2013-12-04 05:07:36 +00:00
parent 812ad83e58
commit 9bd2991ba0
2 changed files with 8 additions and 8 deletions

View File

@ -212,7 +212,7 @@ private:
/// (.gcno and .gcda). /// (.gcno and .gcda).
class GCOVFile { class GCOVFile {
public: public:
GCOVFile() : gcnoInitialized(false), Checksum(0), Functions(), RunCount(0), GCOVFile() : GCNOInitialized(false), Checksum(0), Functions(), RunCount(0),
ProgramCount(0) {} ProgramCount(0) {}
~GCOVFile(); ~GCOVFile();
bool readGCNO(GCOVBuffer &Buffer); bool readGCNO(GCOVBuffer &Buffer);
@ -220,7 +220,7 @@ public:
void dump() const; void dump() const;
void collectLineCounts(FileInfo &FI); void collectLineCounts(FileInfo &FI);
private: private:
bool gcnoInitialized; bool GCNOInitialized;
GCOV::GCOVVersion Version; GCOV::GCOVVersion Version;
uint32_t Checksum; uint32_t Checksum;
SmallVector<GCOVFunction *, 16> Functions; SmallVector<GCOVFunction *, 16> Functions;
@ -302,7 +302,7 @@ public:
} }
void setRunCount(uint32_t Runs) { RunCount = Runs; } void setRunCount(uint32_t Runs) { RunCount = Runs; }
void setProgramCount(uint32_t Programs) { ProgramCount = Programs; } void setProgramCount(uint32_t Programs) { ProgramCount = Programs; }
void print(StringRef gcnoFile, StringRef gcdaFile) const; void print(StringRef GCNOFile, StringRef GCDAFile) const;
private: private:
StringMap<LineData> LineInfo; StringMap<LineData> LineInfo;
uint32_t RunCount; uint32_t RunCount;

View File

@ -43,14 +43,14 @@ bool GCOVFile::readGCNO(GCOVBuffer &Buffer) {
Functions.push_back(GFun); Functions.push_back(GFun);
} }
gcnoInitialized = true; GCNOInitialized = true;
return true; return true;
} }
/// readGCDA - Read GCDA buffer. It is required that readGCDA() can only be /// readGCDA - Read GCDA buffer. It is required that readGCDA() can only be
/// called after readGCNO(). /// called after readGCNO().
bool GCOVFile::readGCDA(GCOVBuffer &Buffer) { bool GCOVFile::readGCDA(GCOVBuffer &Buffer) {
assert(gcnoInitialized && "readGCDA() can only be called after readGCNO()"); assert(GCNOInitialized && "readGCDA() can only be called after readGCNO()");
if (!Buffer.readGCDAFormat()) return false; if (!Buffer.readGCDAFormat()) return false;
GCOV::GCOVVersion GCDAVersion; GCOV::GCOVVersion GCDAVersion;
if (!Buffer.readGCOVVersion(GCDAVersion)) return false; if (!Buffer.readGCOVVersion(GCDAVersion)) return false;
@ -320,7 +320,7 @@ void GCOVBlock::dump() const {
// FileInfo implementation. // FileInfo implementation.
/// print - Print source files with collected line count information. /// print - Print source files with collected line count information.
void FileInfo::print(StringRef gcnoFile, StringRef gcdaFile) const { void FileInfo::print(StringRef GCNOFile, StringRef GCDAFile) const {
for (StringMap<LineData>::const_iterator I = LineInfo.begin(), for (StringMap<LineData>::const_iterator I = LineInfo.begin(),
E = LineInfo.end(); I != E; ++I) { E = LineInfo.end(); I != E; ++I) {
StringRef Filename = I->first(); StringRef Filename = I->first();
@ -338,8 +338,8 @@ void FileInfo::print(StringRef gcnoFile, StringRef gcdaFile) const {
errs() << ErrorInfo << "\n"; errs() << ErrorInfo << "\n";
OS << " -: 0:Source:" << Filename << "\n"; OS << " -: 0:Source:" << Filename << "\n";
OS << " -: 0:Graph:" << gcnoFile << "\n"; OS << " -: 0:Graph:" << GCNOFile << "\n";
OS << " -: 0:Data:" << gcdaFile << "\n"; OS << " -: 0:Data:" << GCDAFile << "\n";
OS << " -: 0:Runs:" << RunCount << "\n"; OS << " -: 0:Runs:" << RunCount << "\n";
OS << " -: 0:Programs:" << ProgramCount << "\n"; OS << " -: 0:Programs:" << ProgramCount << "\n";