[PATCH] D11191: unwind: Export _Unwind_{Get, Set}{GR, IP}() for ARM EHABI.

Logan Chien tzuhsiang.chien at gmail.com
Sat Jul 18 08:53:55 PDT 2015


logan added inline comments.

================
Comment at: include/unwind.h:217
@@ -216,1 +216,3 @@
 
+#if !defined(__LIBUNWIND_DONT_INLINE_UNWIND_LEVEL1)
+#define __LIBUNWIND_EXPORT_UNWIND_LEVEL1 static __inline__
----------------
compnerd wrote:
> The double negative hurts.  Would you be opposed to switching this around so that we can have:
> 
>     __LIBUWNIND_INLINE_LEVEL1
How about changing this to:

    #if defined(__LIBUNWIND_UNWIND_LEVEL1_EXTERNAL_LINKAGE
    #define __LIBUNWIND_EXPORT_UNWIND_LEVEL1 extern
    #else
    #define __LIBUNWIND_EXPORT_UNWIND_LEVEL1 static __inline__
    #endif

My intuition is to make sure that these functions are inlined by default, i.e. other files can get the inlined version without any extra `#define`s.


http://reviews.llvm.org/D11191







More information about the cfe-commits mailing list