llvm-project/compiler-rt/lib/tsan/rtl
Julian Lettner ac855d3ea9 [TSan] Use switches when dealing with enums
Summary:
Small refactoring: replace some if-else cascades with switches so that the compiler warns us about missing cases.
Maybe found a small bug?

Reviewers: dcoughlin, kubamracek, dvyukov, delcypher, jfb

Reviewed By: dvyukov

Subscribers: llvm-commits, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D56295

llvm-svn: 351288
2019-01-16 01:45:12 +00:00
..
tsan.syms.extra tsan: add new mutex annotations 2017-03-26 15:27:04 +00:00
tsan_clock.cc tsan: optimize sync clock memory consumption 2017-07-14 11:30:06 +00:00
tsan_clock.h tsan: optimize sync clock memory consumption 2017-07-14 11:30:06 +00:00
tsan_debugging.cc [TSan] Use switches when dealing with enums 2019-01-16 01:45:12 +00:00
tsan_defs.h tsan: optimize sync clock memory consumption 2017-07-14 11:30:06 +00:00
tsan_dense_alloc.h tsan: give debug names to dense allocators 2017-07-12 12:34:12 +00:00
tsan_external.cc [tsan] Detect races on modifying accesses in Swift code 2017-05-03 16:51:01 +00:00
tsan_fd.cc [Sanitizers] TSan allocator set errno on failure. 2017-07-24 21:22:59 +00:00
tsan_fd.h
tsan_flags.cc tsan: align default value of detect_deadlocks flag with actual behavior 2018-12-19 09:34:13 +00:00
tsan_flags.h tsan: add new mutex annotations 2017-03-26 15:27:04 +00:00
tsan_flags.inc [TSan] Remove ignore_interceptors_accesses flag 2019-01-10 20:04:33 +00:00
tsan_ignoreset.cc
tsan_ignoreset.h
tsan_interceptors.cc [TSan] Remove ignore_interceptors_accesses flag 2019-01-10 20:04:33 +00:00
tsan_interceptors.h Handle NetBSD alias for pthread_sigmask 2018-10-30 18:49:19 +00:00
tsan_interceptors_mac.cc [TSan] Support Objective-C @synchronized with tagged pointers 2019-01-07 19:19:23 +00:00
tsan_interface.cc tsan: Introducing a function to flush the shadow memory from third-party libraries 2017-01-07 11:27:33 +00:00
tsan_interface.h [tsan] Add debugging API to retrieve the "external tag" from reports 2018-05-10 21:46:00 +00:00
tsan_interface_ann.cc Move __tsan::Vector to __sanitizer 2017-12-04 12:30:09 +00:00
tsan_interface_ann.h
tsan_interface_atomic.cc tsan: don't create sync objects on acquire-load 2017-07-12 12:28:23 +00:00
tsan_interface_inl.h [tsan] Expose __tsan_ignore_thread_begin and __tsan_ignore_thread_end in TSan interface 2016-11-11 22:43:12 +00:00
tsan_interface_java.cc tsan: add new mutex annotations 2017-03-26 15:27:04 +00:00
tsan_interface_java.h tsan: allow Java VM iterate over allocated objects 2016-12-14 18:20:18 +00:00
tsan_libdispatch_mac.cc Fixup for r340342: Avoid Block_release'ing the block since we're no longer making a copy. 2018-08-21 22:03:28 +00:00
tsan_malloc_mac.cc [Sanitizers] Add more standard compliant posix_memalign implementation for LSan. 2018-03-12 21:59:06 +00:00
tsan_md5.cc
tsan_mman.cc [TSan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-18 20:03:31 +00:00
tsan_mman.h [Sanitizers] TSan allocator set errno on failure. 2017-07-24 21:22:59 +00:00
tsan_mutex.cc tsan: fix a crash 2016-05-06 19:35:22 +00:00
tsan_mutex.h tsan: fix a crash 2016-05-06 19:35:22 +00:00
tsan_mutexset.cc
tsan_mutexset.h tsan: always define SANITIZER_GO 2016-10-28 20:14:18 +00:00
tsan_new_delete.cc [TSan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-18 20:03:31 +00:00
tsan_platform.h [TSan] Cleanup TSan runtime support for Go on linux-aarch64. NFC. 2018-10-12 10:01:09 +00:00
tsan_platform_linux.cc [compiler-rt][TSan] Add TSan runtime support for Go on linux-aarch64. 2018-09-19 11:56:20 +00:00
tsan_platform_mac.cc [tsan] Adjust setjmp/longjmp handling on Darwin for macOS Mojave 2018-08-21 22:35:52 +00:00
tsan_platform_posix.cc sanitizers: consistently check result of MmapFixedNoReserve 2018-07-20 08:33:41 +00:00
tsan_platform_windows.cc [tsan] Implement WriteMemoryProfile for Darwin 2016-10-31 20:17:13 +00:00
tsan_ppc_regs.h
tsan_preinit.cc Init tsan with .preinit_array section 2016-05-26 17:05:36 +00:00
tsan_report.cc [TSan] Use switches when dealing with enums 2019-01-16 01:45:12 +00:00
tsan_report.h Move __tsan::Vector to __sanitizer 2017-12-04 12:30:09 +00:00
tsan_rtl.cc [sanitizer] Use "fast mmap" kernel flag for shadow memory on macOS 10.13.4+ 2018-11-06 19:55:19 +00:00
tsan_rtl.h Introduce `AddressSpaceView` template parameter to `SizeClassAllocator64`. 2018-12-21 21:09:31 +00:00
tsan_rtl_aarch64.S [tsan] Adjust setjmp/longjmp handling on Darwin for macOS Mojave 2018-08-21 22:35:52 +00:00
tsan_rtl_amd64.S [tsan] Adjust setjmp/longjmp handling on Darwin for macOS Mojave 2018-08-21 22:35:52 +00:00
tsan_rtl_mips64.S [TSan][MIPS] Implements setjmp assembly for MIPS64 2016-08-16 05:06:56 +00:00
tsan_rtl_mutex.cc tsan: fix deficiency in MutexReadOrWriteUnlock 2018-06-22 08:27:52 +00:00
tsan_rtl_ppc64.S
tsan_rtl_proc.cc tsan: always define SANITIZER_GO 2016-10-28 20:14:18 +00:00
tsan_rtl_report.cc tsan: support inlined frames in external symbolization 2018-03-21 08:44:14 +00:00
tsan_rtl_thread.cc tsan: add pthread_tryjoin_np and pthread_timedjoin_np interceptors 2018-11-21 09:31:21 +00:00
tsan_stack_trace.cc [TSan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-18 20:03:31 +00:00
tsan_stack_trace.h [TSan] Report proper error on allocator failures instead of CHECK(0)-ing 2018-06-18 20:03:31 +00:00
tsan_stat.cc tsan: remove some clock-related stats 2017-07-12 12:54:38 +00:00
tsan_stat.h tsan: remove some clock-related stats 2017-07-12 12:54:38 +00:00
tsan_suppressions.cc [TSan] Use switches when dealing with enums 2019-01-16 01:45:12 +00:00
tsan_suppressions.h
tsan_symbolize.cc tsan: fix darwin build after 328079 2018-03-21 09:26:29 +00:00
tsan_symbolize.h
tsan_sync.cc sanitizers: consistently check result of MmapFixedNoReserve 2018-07-20 08:33:41 +00:00
tsan_sync.h [tsan] Add Mutex annotation flag for constant-initialized __tsan_mutex_linker_init behavior 2017-10-20 12:08:53 +00:00
tsan_trace.h tsan: don't pass bogus PCs to __tsan_symbolize_external 2017-08-25 08:52:28 +00:00
tsan_update_shadow_word_inl.h