[llvm-commits] [compiler-rt] r149720 - /compiler-rt/trunk/lib/int_util.h

Nick Kledzik kledzik at apple.com
Fri Feb 3 15:10:56 PST 2012


Author: kledzik
Date: Fri Feb  3 17:10:55 2012
New Revision: 149720

URL: http://llvm.org/viewvc/llvm-project?rev=149720&view=rev
Log:
Remove __attribute__((weak)) on function prototype.  It has a different meaning on prototypes then it does on definitions.  It is not needed on the prototype and causes build failures for static codegen

Modified:
    compiler-rt/trunk/lib/int_util.h

Modified: compiler-rt/trunk/lib/int_util.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/int_util.h?rev=149720&r1=149719&r2=149720&view=diff
==============================================================================
--- compiler-rt/trunk/lib/int_util.h (original)
+++ compiler-rt/trunk/lib/int_util.h Fri Feb  3 17:10:55 2012
@@ -22,11 +22,8 @@
 /** \brief Trigger a program abort (or panic for kernel code). */
 #define compilerrt_abort() compilerrt_abort_impl(__FILE__, __LINE__, \
                                                  __FUNCTION__)
+
 void compilerrt_abort_impl(const char *file, int line,
-                           const char *function)
-#ifndef KERNEL_USE
-  __attribute__((weak))
-#endif
-  __attribute__((noreturn)) __attribute__((visibility("hidden")));
+                           const char *function) __attribute__((noreturn));
 
 #endif /* INT_UTIL_H */





More information about the llvm-commits mailing list