mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 02:46:08 +00:00

Summary: This header is practically useless, but we provide it mostly for the macros so that applications can compile. I'm only doing this for the `libc++` unittests that want it, and it is part of the C standard technically. I just made an RPC call to do `raise`. Anything more isn't going to work since it'd be way too annoying to make the CPU call into some signal handler the GPU registered.
19 lines
639 B
C
19 lines
639 B
C
//===-- Definition of signal number macros --------------------------------===//
|
|
//
|
|
// 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIBC_MACROS_SIGNAL_MACROS_H
|
|
#define LLVM_LIBC_MACROS_SIGNAL_MACROS_H
|
|
|
|
#if defined(__linux__)
|
|
#include "linux/signal-macros.h"
|
|
#elif defined(__NVPTX__) || defined(__AMDGPU__)
|
|
#include "gpu/signal-macros.h"
|
|
#endif
|
|
|
|
#endif // LLVM_LIBC_MACROS_SIGNAL_MACROS_H
|