diff options
author | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-12-04 05:42:28 +0000 |
---|---|---|
committer | Yuchen Wu <yuchenericwu@hotmail.com> | 2013-12-04 05:42:28 +0000 |
commit | 45a5b27d9be7d0707a1fb15fc7e512a39feb95a7 (patch) | |
tree | 85e6ac6da4fda9409f6cf1dc1d5c7dbbd0799401 /include | |
parent | 9bd2991ba0862503e7b7441450328548b9108a89 (diff) | |
download | llvm-45a5b27d9be7d0707a1fb15fc7e512a39feb95a7.tar.gz llvm-45a5b27d9be7d0707a1fb15fc7e512a39feb95a7.tar.bz2 llvm-45a5b27d9be7d0707a1fb15fc7e512a39feb95a7.tar.xz |
llvm-cov: Added checks for ident, checksum, name.
Added additional checks for the Identifier, CfgChecksum and Name for
each GCOVFunction. Also added function names in error messages.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/GCOV.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/GCOV.h b/include/llvm/Support/GCOV.h index 7d24b52ec5..6111d3aebe 100644 --- a/include/llvm/Support/GCOV.h +++ b/include/llvm/Support/GCOV.h @@ -217,6 +217,7 @@ public: ~GCOVFile(); bool readGCNO(GCOVBuffer &Buffer); bool readGCDA(GCOVBuffer &Buffer); + uint32_t getChecksum() const { return Checksum; } void dump() const; void collectLineCounts(FileInfo &FI); private: @@ -239,7 +240,7 @@ struct GCOVEdge { /// GCOVFunction - Collects function information. class GCOVFunction { public: - GCOVFunction() : Ident(0), LineNumber(0) {} + GCOVFunction(GCOVFile &P) : Parent(P), Ident(0), LineNumber(0) {} ~GCOVFunction(); bool readGCNO(GCOVBuffer &Buffer, GCOV::GCOVVersion Version); bool readGCDA(GCOVBuffer &Buffer, GCOV::GCOVVersion Version); @@ -247,6 +248,7 @@ public: void dump() const; void collectLineCounts(FileInfo &FI); private: + GCOVFile &Parent; uint32_t Ident; uint32_t LineNumber; StringRef Name; |