forked from OSchip/llvm-project
[compiler-rt] [lldb] Mark syscall_acquire and syscall_release as USED
Fixes build warnings on NetBSD.
This commit is contained in:
parent
617d64f6c5
commit
d4b0404732
|
@ -2448,13 +2448,13 @@ static void syscall_access_range(uptr pc, uptr p, uptr s, bool write) {
|
||||||
MemoryAccessRange(thr, pc, p, s, 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();
|
TSAN_SYSCALL();
|
||||||
Acquire(thr, pc, addr);
|
Acquire(thr, pc, addr);
|
||||||
DPrintf("syscall_acquire(%p)\n", 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();
|
TSAN_SYSCALL();
|
||||||
DPrintf("syscall_release(%p)\n", addr);
|
DPrintf("syscall_release(%p)\n", addr);
|
||||||
Release(thr, pc, addr);
|
Release(thr, pc, addr);
|
||||||
|
|
Loading…
Reference in New Issue