[PATCH] D52363: [sanitizer] Move __sanitizer_set_death_callback to a more appropriate file
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 21 10:07:22 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT342747: [sanitizer] Move __sanitizer_set_death_callback to a more appropriate file (authored by cryptoad, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D52363?vs=166488&id=166496#toc
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D52363
Files:
lib/sanitizer_common/sanitizer_common.cc
lib/sanitizer_common/sanitizer_termination.cc
Index: lib/sanitizer_common/sanitizer_common.cc
===================================================================
--- lib/sanitizer_common/sanitizer_common.cc
+++ lib/sanitizer_common/sanitizer_common.cc
@@ -339,11 +339,6 @@
}
SANITIZER_INTERFACE_ATTRIBUTE
-void __sanitizer_set_death_callback(void (*callback)(void)) {
- SetUserDieCallback(callback);
-}
-
-SANITIZER_INTERFACE_ATTRIBUTE
int __sanitizer_install_malloc_and_free_hooks(void (*malloc_hook)(const void *,
uptr),
void (*free_hook)(const void *)) {
Index: lib/sanitizer_common/sanitizer_termination.cc
===================================================================
--- lib/sanitizer_common/sanitizer_termination.cc
+++ lib/sanitizer_common/sanitizer_termination.cc
@@ -84,3 +84,12 @@
}
} // namespace __sanitizer
+
+using namespace __sanitizer; // NOLINT
+
+extern "C" {
+SANITIZER_INTERFACE_ATTRIBUTE
+void __sanitizer_set_death_callback(void (*callback)(void)) {
+ SetUserDieCallback(callback);
+}
+} // extern "C"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52363.166496.patch
Type: text/x-patch
Size: 1112 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180921/d50631dc/attachment.bin>
More information about the llvm-commits
mailing list