[PATCH] Add the way to disable LSan at link time.

Sergey Matveev earthdok at google.com
Wed Jun 26 07:39:46 PDT 2013



================
Comment at: lib/lsan/lit_tests/TestCases/link_turned_off.cc:8
@@ +7,3 @@
+int __lsan_is_turned_off() {
+  return 1;
+}
----------------
Can you please make this 
return (argc > 1);
and add a sanity test?

================
Comment at: include/sanitizer/lsan_interface.h:28
@@ -27,1 +27,3 @@
   void __lsan_ignore_object(const void *p);
+  // The user may optionally provide this function to disallow the leak checking
+  // for the program it is linked into. Note: this function may be called late,
----------------
s/the leak checking/leak checking/


http://llvm-reviews.chandlerc.com/D1044



More information about the llvm-commits mailing list