diff options
| author | Alexey Samsonov <samsonov@google.com> | 2012-06-06 06:47:26 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2012-06-06 06:47:26 +0000 |
| commit | bc3a7e3fe2dcc1679672e37faeaca727f2634eec (patch) | |
| tree | 2f14cf27397a221eb0bb0aa03e6fcee5ceab18ee /compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc | |
| parent | bf2409e8aa4d9c0eee047127e6d1885df1f87b73 (diff) | |
| download | bcm5719-llvm-bc3a7e3fe2dcc1679672e37faeaca727f2634eec.tar.gz bcm5719-llvm-bc3a7e3fe2dcc1679672e37faeaca727f2634eec.zip | |
[Sanitizer] add sanitizer_common.h for routines shared between TSan and ASan runtimes. Use __sanitizer::Die() in TSan.
llvm-svn: 158050
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc')
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc index 6d6290adfdb..e60b821ec14 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc @@ -39,6 +39,14 @@ extern "C" int arch_prctl(int code, __sanitizer::uptr *addr); +namespace __sanitizer { + +void Die() { + _exit(1); +} + +} // namespace __sanitizer + namespace __tsan { static uptr g_tls_size; @@ -56,10 +64,6 @@ ScopedInRtl::~ScopedInRtl() { CHECK_EQ(in_rtl_, thr_->in_rtl); } -void Die() { - _exit(1); -} - uptr GetShadowMemoryConsumption() { return 0; } |

