[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
Mon Jan 23 10:33:18 PST 2017


mpividori updated this revision to Diff 85422.

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_DECL(void, __sanitizer_cov_trace_cmp, void);
+  WEAK_DECL(void, __sanitizer_cov_trace_cmp1, void);
+  WEAK_DECL(void, __sanitizer_cov_trace_cmp2, void);
+  WEAK_DECL(void, __sanitizer_cov_trace_cmp4, void);
+  WEAK_DECL(void, __sanitizer_cov_trace_cmp8, void);
+  WEAK_DECL(void, __sanitizer_cov_trace_switch, void);
+  WEAK_DECL(void, __sanitizer_cov_trace_div4, void);
+  WEAK_DECL(void, __sanitizer_cov_trace_div8, void);
+  WEAK_DECL(void, __sanitizer_cov_trace_gep, void);
+  WEAK_DECL(void, __sanitizer_cov_trace_pc_indir, void);
+  WEAK_DECL(void, __sanitizer_cov_trace_pc_guard, __sanitizer::u32*);
+  WEAK_DECL(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.85422.patch
Type: text/x-patch
Size: 1228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170123/845f336f/attachment.bin>


More information about the llvm-commits mailing list