[compiler-rt] [lldb] Mark syscall_acquire and syscall_release as USED

Fixes build warnings on NetBSD.
This commit is contained in:
Kamil Rytarowski 2020-10-14 02:13:29 +02:00
parent 617d64f6c5
commit d4b0404732
1 changed files with 2 additions and 2 deletions

View File

@ -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);