[SLP]Reduce number of alternate instruction, where possible
[llvm-project.git] / libc / src / stdlib / baremetal / abort.cpp
blob98cf71084499ab9e7e100e731767287bc9e2ac6f
1 //===-- Implementation of abort -------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "src/__support/common.h"
10 #include "src/__support/macros/config.h"
12 #include "src/stdlib/abort.h"
14 namespace LIBC_NAMESPACE_DECL {
16 LLVM_LIBC_FUNCTION(void, abort, ()) { __builtin_trap(); }
18 } // namespace LIBC_NAMESPACE_DECL