[libc-commits] [libc] [libc] implement quick exit function (PR #93621)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Wed May 29 17:12:01 PDT 2024


================
@@ -0,0 +1,22 @@
+//===-- Implementation of quick_exit --------------------------------------===//
+//
+// 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/stdlib/quick_exit.h"
+#include "src/__support/OSUtil/exit.h"
+#include "src/__support/common.h"
+
+// extern "C" void __cxa_finalize(void *);
+namespace LIBC_NAMESPACE {
+
+[[noreturn]] LLVM_LIBC_FUNCTION(void, quick_exit, (int status)) {
+  //__cxa_finalize(nullptr);
----------------
nickdesaulniers wrote:

What's up with these comments?

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


More information about the libc-commits mailing list