[ELF] Reorder target-specific error messaes
[llvm-project.git] / libc / src / string / strsignal.cpp
bloba3206a5d1cff100a8a59ce4b96153ae608516258
1 //===-- Implementation of strsignal
2 //----------------------------------------===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
10 #include "src/string/strsignal.h"
11 #include "src/__support/StringUtil/signal_to_string.h"
12 #include "src/__support/common.h"
13 #include "src/__support/macros/config.h"
15 namespace LIBC_NAMESPACE_DECL {
17 LLVM_LIBC_FUNCTION(char *, strsignal, (int sig_num)) {
18 return const_cast<char *>(get_signal_string(sig_num).data());
21 } // namespace LIBC_NAMESPACE_DECL