[compiler-rt] [scudo] Add specific die functions for linux specific failures. (PR #68650)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 9 22:28:18 PDT 2023


================
@@ -0,0 +1,65 @@
+//===-- linux_common.cpp ----------------------------------------*- C++ -*-===//
+//
+// 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 "platform.h"
+
+#if SCUDO_LINUX
+
+#include "common.h"
+#include "internal_defs.h"
+#include "linux_common.h"
+#include "string_utils.h"
+
+#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+
+namespace scudo {
+
+void NORETURN die() { abort(); }
----------------
ChiaHungDuan wrote:

nit: If this is only used here, I may mark it as static and put it in the global namespace.

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


More information about the llvm-commits mailing list