diff options
author | Derek Bruening <bruening@google.com> | 2016-05-24 22:22:20 +0000 |
---|---|---|
committer | Derek Bruening <bruening@google.com> | 2016-05-24 22:22:20 +0000 |
commit | aa4e6eea9cbe85813515530f1b15b7f6b9474be1 (patch) | |
tree | 40b0cd5b31966d84cfcc833545bef5feb71a91c3 /lib/esan/esan_interface_internal.h | |
parent | a0f78dd9c1b9699258bbd392412fad201d3865b0 (diff) |
[esan] Add compilation unit init/exit routines.
Summary:
Adds processCompilationUnitInit and processCompilationUnitExit
for compilation unit init/exit.
Adds a tool-specific argument passed to esan_init.
Adds the dtor and esan_exit called from the dtor.
A test will be added separately (adding it here results in failure until
the corresponding compilation patch is in place).
Reviewers: aizatsky
Subscribers: kubabrecka, bruening, kcc, vitalybuka, eugenis, llvm-commits
Differential Revision: http://reviews.llvm.org/D20486
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@270624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/esan/esan_interface_internal.h')
-rw-r--r-- | lib/esan/esan_interface_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/esan/esan_interface_internal.h b/lib/esan/esan_interface_internal.h index a8b9e0887..577c7e3cf 100644 --- a/lib/esan/esan_interface_internal.h +++ b/lib/esan/esan_interface_internal.h @@ -32,7 +32,8 @@ typedef enum Type : u32 { // This function should be called at the very beginning of the process, // before any instrumented code is executed and before any call to malloc. -SANITIZER_INTERFACE_ATTRIBUTE void __esan_init(ToolType Tool); +SANITIZER_INTERFACE_ATTRIBUTE void __esan_init(ToolType Tool, void *Ptr); +SANITIZER_INTERFACE_ATTRIBUTE void __esan_exit(void *Ptr); // The instrumentation module will insert a call to one of these routines prior // to each load and store instruction for which we do not have "fastpath" |