[libunwind] Flip order of extern "C" and attribute(visibility)
authorRenato Golin <renato.golin@linaro.org>
Fri, 24 Jul 2015 19:29:05 +0000 (19:29 +0000)
committerRenato Golin <renato.golin@linaro.org>
Fri, 24 Jul 2015 19:29:05 +0000 (19:29 +0000)
GCC doesn't seems to like having the attribute before extern, but
Clang accepts it either way. This patch makes it compile on both.

llvm-svn: 243147

libunwind/src/Unwind-EHABI.cpp

index 1a8f90d..bc3df41 100644 (file)
@@ -997,7 +997,7 @@ _Unwind_DeleteException(_Unwind_Exception *exception_object) {
                                            exception_object);
 }
 
-_LIBUNWIND_EXPORT extern "C" _Unwind_Reason_Code
+extern "C" _LIBUNWIND_EXPORT _Unwind_Reason_Code
 __gnu_unwind_frame(_Unwind_Exception *exception_object,
                    struct _Unwind_Context *context) {
   unw_cursor_t *cursor = (unw_cursor_t *)context;