[libc-commits] [libc] [libc] Add wasm support for some submodules in llvm-libc. (PR #154383)

via libc-commits libc-commits at lists.llvm.org
Wed Sep 3 14:05:54 PDT 2025


================
@@ -0,0 +1,17 @@
+//===-- Implementation of sigsetjmp ---------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/setjmp/sigsetjmp.h"
+#include "hdr/offsetof_macros.h"
+#include "src/__support/common.h"
+
+namespace LIBC_NAMESPACE_DECL {
+[[gnu::returns_twice]] int sigsetjmp(jmp_buf sigjmp_buf, int _) {
----------------
lntue wrote:

nit: use `[[maybe_unused]]` and name the second argument.

https://github.com/llvm/llvm-project/pull/154383


More information about the libc-commits mailing list