diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-04-21 01:56:25 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-04-21 01:56:25 +0000 |
commit | a61e52c9b7cf874b46cef687c1c4627a35952542 (patch) | |
tree | 6068d1dec1aaa8c6475140576226c55ece5e18dd /include | |
parent | 333ed454d0c20d0f4999f7c9a404688b254a0cb0 (diff) | |
download | external_llvm-a61e52c9b7cf874b46cef687c1c4627a35952542.zip external_llvm-a61e52c9b7cf874b46cef687c1c4627a35952542.tar.gz external_llvm-a61e52c9b7cf874b46cef687c1c4627a35952542.tar.bz2 |
Add independent controls for whether GCOV profiling should emit .gcno files or
instrument the program to emit .gcda.
TODO: we should emit slightly different .gcda files when .gcno emission is off.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/LinkAllPasses.h | 2 | ||||
-rw-r--r-- | include/llvm/Transforms/Instrumentation.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/LinkAllPasses.h b/include/llvm/LinkAllPasses.h index 56c113b..88ee65a 100644 --- a/include/llvm/LinkAllPasses.h +++ b/include/llvm/LinkAllPasses.h @@ -70,7 +70,7 @@ namespace { (void) llvm::createEdgeProfilerPass(); (void) llvm::createOptimalEdgeProfilerPass(); (void) llvm::createPathProfilerPass(); - (void) llvm::createGCOVProfilerPass(); + (void) llvm::createGCOVProfilerPass(true, true); (void) llvm::createFunctionInliningPass(); (void) llvm::createAlwaysInlinerPass(); (void) llvm::createGlobalDCEPass(); diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h index 3ef2f5a..088775a 100644 --- a/include/llvm/Transforms/Instrumentation.h +++ b/include/llvm/Transforms/Instrumentation.h @@ -28,7 +28,7 @@ ModulePass *createOptimalEdgeProfilerPass(); ModulePass *createPathProfilerPass(); // Insert GCOV profiling instrumentation -ModulePass *createGCOVProfilerPass(); +ModulePass *createGCOVProfilerPass(bool EmitNotes = true, bool EmitData = true); } // End llvm namespace |