summaryrefslogtreecommitdiff
path: root/test/tsan/Darwin
diff options
context:
space:
mode:
authorJulian Lettner <jlettner@apple.com>2019-09-09 20:07:03 +0000
committerJulian Lettner <jlettner@apple.com>2019-09-09 20:07:03 +0000
commita7df678e90f9515add3a14a351432b6ead337526 (patch)
tree9c54d50b5cc96c54e2401c1a8bc55d3c200dc418 /test/tsan/Darwin
parente6ebd8de804b785ccb160e5914578b90edf6e455 (diff)
downloadcompiler-rt-a7df678e90f9515add3a14a351432b6ead337526.tar.gz
[TSan] Add AnnotateIgnoreReadsBegin declaration to tsan/test.h
Declare the family of AnnotateIgnore[Read,Write][Begin,End] TSan annotations in compiler-rt/test/tsan/test.h so that we don't have to declare them separately in every test that needs them. Replace usages. Leave usages that explicitly test the annotation mechanism: thread_end_with_ignore.cpp thread_end_with_ignore3.cpp git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@371446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/Darwin')
-rw-r--r--test/tsan/Darwin/mach_vm_allocate.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/tsan/Darwin/mach_vm_allocate.c b/test/tsan/Darwin/mach_vm_allocate.c
index df3cdec71..5b1235201 100644
--- a/test/tsan/Darwin/mach_vm_allocate.c
+++ b/test/tsan/Darwin/mach_vm_allocate.c
@@ -11,11 +11,6 @@
#include "../test.h"
-void AnnotateIgnoreReadsBegin(const char *f, int l);
-void AnnotateIgnoreReadsEnd(const char *f, int l);
-void AnnotateIgnoreWritesBegin(const char *f, int l);
-void AnnotateIgnoreWritesEnd(const char *f, int l);
-
static int *global_ptr;
const mach_vm_size_t alloc_size = sizeof(int);