[compiler-rt] r188238 - [dfsan] Remove the unused __dfsan_memcpy function.

Peter Collingbourne peter at pcc.me.uk
Mon Aug 12 17:16:18 PDT 2013


Author: pcc
Date: Mon Aug 12 19:16:18 2013
New Revision: 188238

URL: http://llvm.org/viewvc/llvm-project?rev=188238&view=rev
Log:
[dfsan] Remove the unused __dfsan_memcpy function.

Differential Revision: http://llvm-reviews.chandlerc.com/D1350

Modified:
    compiler-rt/trunk/lib/dfsan/dfsan.cc

Modified: compiler-rt/trunk/lib/dfsan/dfsan.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/dfsan/dfsan.cc?rev=188238&r1=188237&r2=188238&view=diff
==============================================================================
--- compiler-rt/trunk/lib/dfsan/dfsan.cc (original)
+++ compiler-rt/trunk/lib/dfsan/dfsan.cc Mon Aug 12 19:16:18 2013
@@ -130,13 +130,6 @@ dfsan_label __dfsan_union_load(dfsan_lab
   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





More information about the llvm-commits mailing list