xref: /llvm-project/libc/src/stdlib/baremetal/abort.cpp (revision 5ff3ff33ff930e4ec49da7910612d8a41eb068cb)
1d159c372SAlex Brachet //===-- Implementation of abort -------------------------------------------===//
2d159c372SAlex Brachet //
3d159c372SAlex Brachet // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4d159c372SAlex Brachet // See https://llvm.org/LICENSE.txt for license information.
5d159c372SAlex Brachet // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6d159c372SAlex Brachet //
7d159c372SAlex Brachet //===----------------------------------------------------------------------===//
8d159c372SAlex Brachet 
9d159c372SAlex Brachet #include "src/__support/common.h"
10*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h"
11d159c372SAlex Brachet 
12d159c372SAlex Brachet #include "src/stdlib/abort.h"
13d159c372SAlex Brachet 
14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL {
15d159c372SAlex Brachet 
16d159c372SAlex Brachet LLVM_LIBC_FUNCTION(void, abort, ()) { __builtin_trap(); }
17d159c372SAlex Brachet 
18*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL
19