Skip to content

Commit 15c7e9f

Browse files
authored
[rtsan][NFC] Remove some unneeded headers, make guards more obvious (#114911)
1 parent a5e1898 commit 15c7e9f

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@
1515

1616
#include "interception/interception.h"
1717
#include "sanitizer_common/sanitizer_allocator_dlsym.h"
18-
#include "sanitizer_common/sanitizer_allocator_internal.h"
1918
#include "sanitizer_common/sanitizer_platform_interceptors.h"
2019

2120
#include "interception/interception.h"
2221
#include "rtsan/rtsan.h"
23-
#include "rtsan/rtsan_context.h"
2422

2523
#if SANITIZER_APPLE
2624

@@ -33,11 +31,11 @@ extern "C" {
3331
typedef int32_t OSSpinLock;
3432
void OSSpinLockLock(volatile OSSpinLock *__lock);
3533
}
36-
#endif
34+
#endif // TARGET_OS_MAC
3735

3836
#include <libkern/OSAtomic.h>
3937
#include <os/lock.h>
40-
#endif
38+
#endif // SANITIZER_APPLE
4139

4240
#if SANITIZER_INTERCEPT_MEMALIGN || SANITIZER_INTERCEPT_PVALLOC
4341
#include <malloc.h>

compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@
2828
#include <malloc.h>
2929
#endif
3030

31-
#include <atomic>
32-
#include <chrono>
33-
#include <string>
34-
#include <thread>
35-
3631
#include <fcntl.h>
3732
#include <pthread.h>
3833
#include <stdio.h>

0 commit comments

Comments
 (0)