From 21214517f01a690f69948441e3c84fef38717390 Mon Sep 17 00:00:00 2001 From: Derek Bruening Date: Fri, 20 May 2016 20:00:05 +0000 Subject: [esan] Use ModulePass for EfficiencySanitizerPass. Summary: Uses ModulePass instead of FunctionPass for EfficiencySanitizerPass to better support global variable creation for a forthcoming struct field counter tool. Patch by Qin Zhao. Reviewers: aizatsky Subscribers: llvm-commits, eugenis, vitalybuka, bruening, kcc Differential Revision: http://reviews.llvm.org/D20458 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270263 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/Instrumentation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h index e9a4fe75fd8..1b8533d498b 100644 --- a/include/llvm/Transforms/Instrumentation.h +++ b/include/llvm/Transforms/Instrumentation.h @@ -127,7 +127,7 @@ struct EfficiencySanitizerOptions { }; // Insert EfficiencySanitizer instrumentation. -FunctionPass *createEfficiencySanitizerPass( +ModulePass *createEfficiencySanitizerPass( const EfficiencySanitizerOptions &Options = EfficiencySanitizerOptions()); // Options for sanitizer coverage instrumentation. -- cgit v1.2.3