diff options
author | Dean Michael Berris <dberris@google.com> | 2017-05-22 03:23:54 +0000 |
---|---|---|
committer | Dean Michael Berris <dberris@google.com> | 2017-05-22 03:23:54 +0000 |
commit | 36778a54fe6581117bdaabc359e01d8b86217fcb (patch) | |
tree | b02a2ab687c62725f394f29f93770389df9667c0 /compiler-rt/lib/xray/xray_interface.cc | |
parent | 822ba7eddc0b68242d7964b9e984b24044e5f053 (diff) | |
download | bcm5719-llvm-36778a54fe6581117bdaabc359e01d8b86217fcb.tar.gz bcm5719-llvm-36778a54fe6581117bdaabc359e01d8b86217fcb.zip |
[XRay][compiler-rt] Add __xray_remove_customevent_handler(...)
This change adds __xray_remove_customevent_handler(...) to be consistent
with other APIs that add/remove handlers.
llvm-svn: 303526
Diffstat (limited to 'compiler-rt/lib/xray/xray_interface.cc')
-rw-r--r-- | compiler-rt/lib/xray/xray_interface.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/xray/xray_interface.cc b/compiler-rt/lib/xray/xray_interface.cc index 523ed16b9e1..e912b6e478a 100644 --- a/compiler-rt/lib/xray/xray_interface.cc +++ b/compiler-rt/lib/xray/xray_interface.cc @@ -119,10 +119,15 @@ int __xray_set_customevent_handler(void (*entry)(void *, size_t)) return 0; } + int __xray_remove_handler() XRAY_NEVER_INSTRUMENT { return __xray_set_handler(nullptr); } +int __xray_remove_customevent_handler() XRAY_NEVER_INSTRUMENT { + return __xray_set_customevent_handler(nullptr); +} + __sanitizer::atomic_uint8_t XRayPatching{0}; using namespace __xray; |