[compiler-rt] r249985 - builtins: use NORETURN macro

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 11 10:35:39 PDT 2015


Author: compnerd
Date: Sun Oct 11 12:35:38 2015
New Revision: 249985

URL: http://llvm.org/viewvc/llvm-project?rev=249985&view=rev
Log:
builtins: use NORETURN macro

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

Modified:
    compiler-rt/trunk/lib/builtins/int_util.c

Modified: compiler-rt/trunk/lib/builtins/int_util.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/int_util.c?rev=249985&r1=249984&r2=249985&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/int_util.c (original)
+++ compiler-rt/trunk/lib/builtins/int_util.c Sun Oct 11 12:35:38 2015
@@ -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 *f
 #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))




More information about the llvm-commits mailing list