21 lines · c
1//===-- Internal header for __stack_chk_fail --------------------*- C++ -*-===//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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_SRC_COMPILER___STACK_CHK_FAIL_H10#define LLVM_LIBC_SRC_COMPILER___STACK_CHK_FAIL_H11 12// The compiler will emit calls implicitly to a non-namespaced version.13// TODO: can we additionally provide a namespaced alias so that tests can14// explicitly call the namespaced variant rather than the non-namespaced15// definition?16extern "C" {17[[noreturn]] void __stack_chk_fail();18} // extern "C"19 20#endif // LLVM_LIBC_SRC_COMPILER___STACK_CHK_FAIL_H21