builtins: use NORETURN macro

Now that we have the NORETURN macro, use that to mark the function as noreturn,
rather than the GNU __attribute__.

llvm-svn: 249985
This commit is contained in:
Saleem Abdulrasool 2015-10-11 17:35:38 +00:00
parent 3bcf5bb79e
commit 8b3353f20f
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
#ifdef KERNEL_USE
extern void panic(const char *, ...) __attribute__((noreturn));
NORETURN extern void panic(const char *, ...);
#ifndef _WIN32
__attribute__((visibility("hidden")))
#endif
@ -34,8 +34,8 @@ void compilerrt_abort_impl(const char *file, int line, const char *function) {
#elif __APPLE__
/* from libSystem.dylib */
extern void __assert_rtn(const char *func, const char *file,
int line, const char * message) __attribute__((noreturn));
NORETURN extern void __assert_rtn(const char *func, const char *file, int line,
const char *message);
#ifndef _WIN32
__attribute__((weak))