Switch from a version 4.2/4.4 switch to a four-byte version string to be put

into the actual gcov file.

Instead of using the bottom 4 bytes as the function identifier, use a counter.
This makes the identifier numbers stable across multiple runs.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176616 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Lewycky
2013-03-07 08:28:49 +00:00
parent 4d895455fe
commit d9686a98b8
2 changed files with 27 additions and 24 deletions

View File

@@ -31,8 +31,9 @@ ModulePass *createOptimalEdgeProfilerPass();
ModulePass *createPathProfilerPass();
// Insert GCOV profiling instrumentation
static const char DefaultGCovVersion[4] = {'*', '2', '0', '4'};
ModulePass *createGCOVProfilerPass(bool EmitNotes = true, bool EmitData = true,
bool Use402Format = false,
const char (&Version)[4] =DefaultGCovVersion,
bool UseExtraChecksum = false,
bool NoRedZone = false,
bool NoFunctionNamesInData = false);