Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libc / src / signal / linux / __restore.cpp
blob36fa375d672e18c2da556bbd50e47b909172d1c3
1 //===-- Linux implementation of __restore_rt ------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // This file is implemented separately from sigaction.cpp so that we can
10 // strongly control the options this file is compiled with. __restore_rt cannot
11 // make any stack allocations so we must ensure this.
13 #include "src/__support/OSUtil/syscall.h"
15 #include <sys/syscall.h>
17 namespace LIBC_NAMESPACE {
19 extern "C" void __restore_rt()
20 __attribute__((no_sanitize("all"),
21 hidden));
23 extern "C" void __restore_rt() {
24 LIBC_NAMESPACE::syscall_impl<long>(SYS_rt_sigreturn);
27 } // namespace LIBC_NAMESPACE