summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2013-03-07 08:28:49 +0000
committerNick Lewycky <nicholas@mxc.ca>2013-03-07 08:28:49 +0000
commitd9686a98b8145010516c44a3a5b9b96bf934b9ac (patch)
treefa706bcc832e554f6c0f530289b70b20cb158ca2 /include
parent4d895455fe1bcc0bbfe1a0f18c01246694f64a9c (diff)
downloadllvm-d9686a98b8145010516c44a3a5b9b96bf934b9ac.tar.gz
llvm-d9686a98b8145010516c44a3a5b9b96bf934b9ac.tar.bz2
llvm-d9686a98b8145010516c44a3a5b9b96bf934b9ac.tar.xz
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')
-rw-r--r--include/llvm/Transforms/Instrumentation.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h
index a57e0f3e8a..f96b5b3f77 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);