Expose a switch for the new gcov format.
authorNick Lewycky <nicholas@mxc.ca>
Tue, 6 Dec 2011 00:29:13 +0000 (00:29 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 6 Dec 2011 00:29:13 +0000 (00:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145880 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Instrumentation.h
lib/Transforms/Instrumentation/GCOVProfiling.cpp

index f9b962387dcd2e9e8e05513e9b9fa11713f75e91..baa6364f5090e45f8ae210408b8a04c4e7609c39 100644 (file)
@@ -29,7 +29,8 @@ ModulePass *createPathProfilerPass();
 
 // Insert GCOV profiling instrumentation
 ModulePass *createGCOVProfilerPass(bool EmitNotes = true, bool EmitData = true,
-                                   bool Use402Format = false);
+                                   bool Use402Format = false,
+                                   bool UseExtraChecksum = false);
 
 // Insert AddressSanitizer (address sanity checking) instrumentation
 ModulePass *createAddressSanitizerPass();
index 3ba5d2c74d5d1dd5d24dd972064f7a5e144b191c..96e5d5b31140324602172902a9216418a6526b87 100644 (file)
@@ -108,8 +108,9 @@ INITIALIZE_PASS(GCOVProfiler, "insert-gcov-profiling",
                 "Insert instrumentation for GCOV profiling", false, false)
 
 ModulePass *llvm::createGCOVProfilerPass(bool EmitNotes, bool EmitData,
-                                         bool Use402Format) {
-  return new GCOVProfiler(EmitNotes, EmitData, Use402Format);
+                                         bool Use402Format,
+                                         bool UseExtraChecksum) {
+  return new GCOVProfiler(EmitNotes, EmitData, Use402Format, UseExtraChecksum);
 }
 
 namespace {