iOS: Don't generate exception tables
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>
Mon, 15 Apr 2013 14:42:49 +0000 (16:42 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Wed, 17 Apr 2013 11:46:43 +0000 (13:46 +0200)
The platform uses setjmp/longjmp.

Change-Id: I1a272ee35d02506e6e2ccde7c6b779061ba06e5b
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/v4vm/qv4isel_masm.cpp

index 027e2c5..fd14b72 100644 (file)
@@ -426,7 +426,7 @@ static void printDisassembledOutputWithCalls(const char* output, const QHash<voi
 void Assembler::link(VM::Function *vmFunc)
 {
     Label endOfCode = label();
-#ifdef Q_PROCESSOR_ARM
+#if defined(Q_PROCESSOR_ARM) && !defined(Q_OS_IOS)
     // Let the ARM exception table follow right after that
     for (int i = 0, nops = UnwindHelper::unwindInfoSize() / 2; i < nops; ++i)
         nop();
@@ -469,7 +469,7 @@ void Assembler::link(VM::Function *vmFunc)
         }
     }
 
-#ifdef Q_PROCESSOR_ARM
+#if defined(Q_PROCESSOR_ARM) && !defined(Q_OS_IOS)
     UnwindHelper::writeARMUnwindInfo(linkBuffer.debugAddress(), linkBuffer.offsetOf(endOfCode));
 #endif