[ASan/Win tests] Bring back -GS- as SEH tests fail otherwise
[blocksruntime.git] / lib / builtins / int_util.h
bloba9b595db8d0f1f53ef061b0221ffd964e5618c66
1 /* ===-- int_util.h - internal utility functions ----------------------------===
3 * The LLVM Compiler Infrastructure
5 * This file is dual licensed under the MIT and the University of Illinois Open
6 * Source Licenses. See LICENSE.TXT for details.
8 * ===-----------------------------------------------------------------------===
10 * This file is not part of the interface of this library.
12 * This file defines non-inline utilities which are available for use in the
13 * library. The function definitions themselves are all contained in int_util.c
14 * which will always be compiled into any compiler-rt library.
16 * ===-----------------------------------------------------------------------===
19 #ifndef INT_UTIL_H
20 #define INT_UTIL_H
22 /** \brief Trigger a program abort (or panic for kernel code). */
23 #define compilerrt_abort() compilerrt_abort_impl(__FILE__, __LINE__, \
24 __func__)
26 void compilerrt_abort_impl(const char *file, int line,
27 const char *function) __attribute__((noreturn));
29 #endif /* INT_UTIL_H */