diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2013-03-07 08:28:49 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2013-03-07 08:28:49 +0000 |
commit | d9686a98b8145010516c44a3a5b9b96bf934b9ac (patch) | |
tree | fa706bcc832e554f6c0f530289b70b20cb158ca2 /include/llvm/Transforms | |
parent | 4d895455fe1bcc0bbfe1a0f18c01246694f64a9c (diff) | |
download | external_llvm-d9686a98b8145010516c44a3a5b9b96bf934b9ac.zip external_llvm-d9686a98b8145010516c44a3a5b9b96bf934b9ac.tar.gz external_llvm-d9686a98b8145010516c44a3a5b9b96bf934b9ac.tar.bz2 |
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
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r-- | include/llvm/Transforms/Instrumentation.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h index a57e0f3..f96b5b3 100644 --- a/include/llvm/Transforms/Instrumentation.h +++ b/include/llvm/Transforms/Instrumentation.h @@ -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); |