[llvm] r196354 - llvm-cov: Capitalized GCNO and GCDA for consistency.

Yuchen Wu yuchenericwu at hotmail.com
Tue Dec 3 21:07:36 PST 2013


Author: ywu
Date: Tue Dec  3 23:07:36 2013
New Revision: 196354

URL: http://llvm.org/viewvc/llvm-project?rev=196354&view=rev
Log:
llvm-cov: Capitalized GCNO and GCDA for consistency.

Modified:
    llvm/trunk/include/llvm/Support/GCOV.h
    llvm/trunk/lib/IR/GCOV.cpp

Modified: llvm/trunk/include/llvm/Support/GCOV.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/GCOV.h?rev=196354&r1=196353&r2=196354&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/GCOV.h (original)
+++ llvm/trunk/include/llvm/Support/GCOV.h Tue Dec  3 23:07:36 2013
@@ -212,7 +212,7 @@ private:
 /// (.gcno and .gcda).
 class GCOVFile {
 public:
-  GCOVFile() : gcnoInitialized(false), Checksum(0), Functions(), RunCount(0),
+  GCOVFile() : GCNOInitialized(false), Checksum(0), Functions(), RunCount(0),
                ProgramCount(0) {}
   ~GCOVFile();
   bool readGCNO(GCOVBuffer &Buffer);
@@ -220,7 +220,7 @@ public:
   void dump() const;
   void collectLineCounts(FileInfo &FI);
 private:
-  bool gcnoInitialized;
+  bool GCNOInitialized;
   GCOV::GCOVVersion Version;
   uint32_t Checksum;
   SmallVector<GCOVFunction *, 16> Functions;
@@ -302,7 +302,7 @@ public:
   }
   void setRunCount(uint32_t Runs) { RunCount = Runs; }
   void setProgramCount(uint32_t Programs) { ProgramCount = Programs; }
-  void print(StringRef gcnoFile, StringRef gcdaFile) const;
+  void print(StringRef GCNOFile, StringRef GCDAFile) const;
 private:
   StringMap<LineData> LineInfo;
   uint32_t RunCount;

Modified: llvm/trunk/lib/IR/GCOV.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/GCOV.cpp?rev=196354&r1=196353&r2=196354&view=diff
==============================================================================
--- llvm/trunk/lib/IR/GCOV.cpp (original)
+++ llvm/trunk/lib/IR/GCOV.cpp Tue Dec  3 23:07:36 2013
@@ -43,14 +43,14 @@ bool GCOVFile::readGCNO(GCOVBuffer &Buff
     Functions.push_back(GFun);
   }
 
-  gcnoInitialized = true;
+  GCNOInitialized = true;
   return true;
 }
 
 /// readGCDA - Read GCDA buffer. It is required that readGCDA() can only be
 /// called after readGCNO().
 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;
   GCOV::GCOVVersion GCDAVersion;
   if (!Buffer.readGCOVVersion(GCDAVersion)) return false;
@@ -320,7 +320,7 @@ void GCOVBlock::dump() const {
 // FileInfo implementation.
 
 /// 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(),
          E = LineInfo.end(); I != E; ++I) {
     StringRef Filename = I->first();
@@ -338,8 +338,8 @@ void FileInfo::print(StringRef gcnoFile,
       errs() << ErrorInfo << "\n";
 
     OS << "        -:    0:Source:" << Filename << "\n";
-    OS << "        -:    0:Graph:" << gcnoFile << "\n";
-    OS << "        -:    0:Data:" << gcdaFile << "\n";
+    OS << "        -:    0:Graph:" << GCNOFile << "\n";
+    OS << "        -:    0:Data:" << GCDAFile << "\n";
     OS << "        -:    0:Runs:" << RunCount << "\n";
     OS << "        -:    0:Programs:" << ProgramCount << "\n";
 





More information about the llvm-commits mailing list