[ASan] Make sure operator new/delete and friends are intercepted on OS X.
authorAlexander Potapenko <glider@google.com>
Thu, 21 Feb 2013 16:54:09 +0000 (16:54 +0000)
committerAlexander Potapenko <glider@google.com>
Thu, 21 Feb 2013 16:54:09 +0000 (16:54 +0000)
commita47c6ee286d13ce76cc6ab5ce4c34b1489892af7
tree087964f10cc97995276ba2d9a86aab9970d562e9
parente93249befaa2383cc34c27771265123090cda085
[ASan] Make sure operator new/delete and friends are intercepted on OS X.
Because the interceptors will reside in a dylib, not the main executable, we can't just declare them,
but must use the interposition machinery.
Fix the test expectations in large_func_test.cc affected by the change.
This CL should make our Mac buildbots green.

llvm-svn: 175763
compiler-rt/lib/asan/asan_new_delete.cc
compiler-rt/lib/asan/lit_tests/large_func_test.cc