[compiler-rt] r205415 - [msan] Kill __msan_print_param_shadow.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Wed Apr 2 04:55:24 PDT 2014


Author: eugenis
Date: Wed Apr  2 06:55:24 2014
New Revision: 205415

URL: http://llvm.org/viewvc/llvm-project?rev=205415&view=rev
Log:
[msan] Kill __msan_print_param_shadow.

It does not do what it's name says, and what it actually does is hard to
describe, and is not useful at all.

Modified:
    compiler-rt/trunk/include/sanitizer/msan_interface.h
    compiler-rt/trunk/lib/msan/msan.cc
    compiler-rt/trunk/lib/msan/msan_interface_internal.h

Modified: compiler-rt/trunk/include/sanitizer/msan_interface.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/include/sanitizer/msan_interface.h?rev=205415&r1=205414&r2=205415&view=diff
==============================================================================
--- compiler-rt/trunk/include/sanitizer/msan_interface.h (original)
+++ compiler-rt/trunk/include/sanitizer/msan_interface.h Wed Apr  2 06:55:24 2014
@@ -78,10 +78,6 @@ extern "C" {
      format. */
   void __msan_print_shadow(const volatile void *x, size_t size);
 
-  /* Print current function arguments shadow and origin to stderr in a
-     human-readable format. */
-  void __msan_print_param_shadow();
-
   /* Returns true if running under a dynamic tool (DynamoRio-based). */
   int  __msan_has_dynamic_component();
 

Modified: compiler-rt/trunk/lib/msan/msan.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan.cc?rev=205415&r1=205414&r2=205415&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan.cc (original)
+++ compiler-rt/trunk/lib/msan/msan.cc Wed Apr  2 06:55:24 2014
@@ -367,13 +367,6 @@ void __msan_print_shadow(const void *x,
   }
 }
 
-void __msan_print_param_shadow() {
-  for (int i = 0; i < 16; i++) {
-    Printf("#%d:%zx ", i, __msan_param_tls[i]);
-  }
-  Printf("\n");
-}
-
 sptr __msan_test_shadow(const void *x, uptr size) {
   if (!MEM_IS_APP(x)) return -1;
   unsigned char *s = (unsigned char *)MEM_TO_SHADOW((uptr)x);

Modified: compiler-rt/trunk/lib/msan/msan_interface_internal.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan_interface_internal.h?rev=205415&r1=205414&r2=205415&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan_interface_internal.h (original)
+++ compiler-rt/trunk/lib/msan/msan_interface_internal.h Wed Apr  2 06:55:24 2014
@@ -100,8 +100,6 @@ void __msan_set_expect_umr(int expect_um
 SANITIZER_INTERFACE_ATTRIBUTE
 void __msan_print_shadow(const void *x, uptr size);
 SANITIZER_INTERFACE_ATTRIBUTE
-void __msan_print_param_shadow();
-SANITIZER_INTERFACE_ATTRIBUTE
 int  __msan_has_dynamic_component();
 
 // Returns x such that %fs:x is the first byte of __msan_retval_tls.





More information about the llvm-commits mailing list