[PATCH] D28597: [compiler-rt] [Sanitizer Coverage] Add new sanitizer coverage functions to the internal interface.

Marcos Pividori via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 12 00:12:31 PST 2017


mpividori created this revision.
mpividori added reviewers: kcc, rnk, aizatsky, zturner.
mpividori added a subscriber: llvm-commits.
mpividori set the repository for this revision to rL LLVM.
Herald added subscribers: dberris, kubabrecka.

In this simple commit, I add the declaration of the weak functions to the internal interface of sanitizer common.


Repository:
  rL LLVM

https://reviews.llvm.org/D28597

Files:
  lib/sanitizer_common/sanitizer_interface_internal.h


Index: lib/sanitizer_common/sanitizer_interface_internal.h
===================================================================
--- lib/sanitizer_common/sanitizer_interface_internal.h
+++ lib/sanitizer_common/sanitizer_interface_internal.h
@@ -69,6 +69,20 @@
   int __sanitizer_get_module_and_offset_for_pc(
       __sanitizer::uptr pc, char *module_path,
       __sanitizer::uptr module_path_len, __sanitizer::uptr *pc_offset);
-  } // extern "C"
+
+  WEAK_INTERFACE(void, __sanitizer_cov_trace_cmp, ());
+  WEAK_INTERFACE(void, __sanitizer_cov_trace_cmp1, ());
+  WEAK_INTERFACE(void, __sanitizer_cov_trace_cmp2, ());
+  WEAK_INTERFACE(void, __sanitizer_cov_trace_cmp4, ());
+  WEAK_INTERFACE(void, __sanitizer_cov_trace_cmp8, ());
+  WEAK_INTERFACE(void, __sanitizer_cov_trace_switch, ());
+  WEAK_INTERFACE(void, __sanitizer_cov_trace_div4, ());
+  WEAK_INTERFACE(void, __sanitizer_cov_trace_div8, ());
+  WEAK_INTERFACE(void, __sanitizer_cov_trace_gep, ());
+  WEAK_INTERFACE(void, __sanitizer_cov_trace_pc_indir, ());
+  WEAK_INTERFACE(void, __sanitizer_cov_trace_pc_guard, (__sanitizer::u32*));
+  WEAK_INTERFACE(void, __sanitizer_cov_trace_pc_guard_init, (__sanitizer::u32*,
+                                                            __sanitizer::u32*));
+} // extern "C"
 
 #endif  // SANITIZER_INTERFACE_INTERNAL_H


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28597.84078.patch
Type: text/x-patch
Size: 1326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170112/b3a183c3/attachment.bin>


More information about the llvm-commits mailing list