[PATCH] D41802: Allow users of the GCOV API to extend the FileInfo class to implement custom output formats

Marco Castelluccio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 8 04:02:10 PST 2018


marco-c updated this revision to Diff 128904.

https://reviews.llvm.org/D41802

Files:
  include/llvm/ProfileData/GCOV.h


Index: include/llvm/ProfileData/GCOV.h
===================================================================
--- include/llvm/ProfileData/GCOV.h
+++ include/llvm/ProfileData/GCOV.h
@@ -376,6 +376,7 @@
 };
 
 class FileInfo {
+protected:
   // It is unlikely--but possible--for multiple functions to be on the same
   // line.
   // Therefore this typedef allows LineData.Functions to store multiple
@@ -428,7 +429,7 @@
   void print(raw_ostream &OS, StringRef MainFilename, StringRef GCNOFile,
              StringRef GCDAFile);
 
-private:
+protected:
   std::string getCoveragePath(StringRef Filename, StringRef MainFilename);
   std::unique_ptr<raw_ostream> openCoveragePath(StringRef CoveragePath);
   void printFunctionSummary(raw_ostream &OS, const FunctionVector &Funcs) const;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41802.128904.patch
Type: text/x-patch
Size: 783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180108/3fdbd344/attachment.bin>


More information about the llvm-commits mailing list