[compiler-rt] d4b0404 - [compiler-rt] [lldb] Mark syscall_acquire and syscall_release as USED
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 13 18:57:31 PDT 2020
Author: Kamil Rytarowski
Date: 2020-10-14T03:57:15+02:00
New Revision: d4b040473291c5b25bee05fae3a10ac9ad0baa99
URL: https://github.com/llvm/llvm-project/commit/d4b040473291c5b25bee05fae3a10ac9ad0baa99
DIFF: https://github.com/llvm/llvm-project/commit/d4b040473291c5b25bee05fae3a10ac9ad0baa99.diff
LOG: [compiler-rt] [lldb] Mark syscall_acquire and syscall_release as USED
Fixes build warnings on NetBSD.
Added:
Modified:
compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
index d485af8b6052..20c2747aaea4 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
@@ -2448,13 +2448,13 @@ static void syscall_access_range(uptr pc, uptr p, uptr s, bool write) {
MemoryAccessRange(thr, pc, p, s, write);
}
-static void syscall_acquire(uptr pc, uptr addr) {
+static USED void syscall_acquire(uptr pc, uptr addr) {
TSAN_SYSCALL();
Acquire(thr, pc, addr);
DPrintf("syscall_acquire(%p)\n", addr);
}
-static void syscall_release(uptr pc, uptr addr) {
+static USED void syscall_release(uptr pc, uptr addr) {
TSAN_SYSCALL();
DPrintf("syscall_release(%p)\n", addr);
Release(thr, pc, addr);
More information about the llvm-commits
mailing list