[llvm-commits] [compiler-rt] r103330 - /compiler-rt/trunk/lib/gcc_personality_v0.c

Nick Kledzik kledzik at apple.com
Fri May 7 16:44:20 PDT 2010


Author: kledzik
Date: Fri May  7 18:44:20 2010
New Revision: 103330

URL: http://llvm.org/viewvc/llvm-project?rev=103330&view=rev
Log:
sjlj based personality requires a different name

Modified:
    compiler-rt/trunk/lib/gcc_personality_v0.c

Modified: compiler-rt/trunk/lib/gcc_personality_v0.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/gcc_personality_v0.c?rev=103330&r1=103329&r2=103330&view=diff
==============================================================================
--- compiler-rt/trunk/lib/gcc_personality_v0.c (original)
+++ compiler-rt/trunk/lib/gcc_personality_v0.c Fri May  7 18:44:20 2010
@@ -184,10 +184,16 @@
  * on each frame as the stack is unwound during a C++ exception
  * throw through a C function compiled with -fexceptions.
  */
-
+#if __arm__
+// the setjump-longjump based exceptions personality routine has a different name
+_Unwind_Reason_Code __gcc_personality_sj0(int version, _Unwind_Action actions,
+         uint64_t exceptionClass, struct _Unwind_Exception* exceptionObject,
+         _Unwind_Context_t context)
+#else
 _Unwind_Reason_Code __gcc_personality_v0(int version, _Unwind_Action actions,
          uint64_t exceptionClass, struct _Unwind_Exception* exceptionObject,
          _Unwind_Context_t context)
+#endif
 {
     /* Since C does not have catch clauses, there is nothing to do during */
     /* phase 1 (the search phase). */





More information about the llvm-commits mailing list