From e4c3c84e9d470ebe5bae3a28358f28c7f652e5a6 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 13 Aug 2013 00:16:18 +0000 Subject: [dfsan] Remove the unused __dfsan_memcpy function. Differential Revision: http://llvm-reviews.chandlerc.com/D1350 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188238 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/dfsan/dfsan.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib') diff --git a/lib/dfsan/dfsan.cc b/lib/dfsan/dfsan.cc index 02f64deeb..c8b0e6851 100644 --- a/lib/dfsan/dfsan.cc +++ b/lib/dfsan/dfsan.cc @@ -130,13 +130,6 @@ dfsan_label __dfsan_union_load(dfsan_label *ls, size_t n) { return label; } -extern "C" SANITIZER_INTERFACE_ATTRIBUTE -void *__dfsan_memcpy(void *dest, const void *src, size_t n) { - dfsan_label *sdest = shadow_for(dest), *ssrc = shadow_for((void *)src); - internal_memcpy((void *)sdest, (void *)ssrc, n * sizeof(dfsan_label)); - return internal_memcpy(dest, src, n); -} - // Like __dfsan_union, but for use from the client or custom functions. Hence // the equality comparison is done here before calling __dfsan_union. SANITIZER_INTERFACE_ATTRIBUTE dfsan_label -- cgit v1.2.3