[llvm-commits] [dragonegg] r115760 - /dragonegg/trunk/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Wed Oct 6 00:05:57 PDT 2010
Author: baldrick
Date: Wed Oct 6 02:05:57 2010
New Revision: 115760
URL: http://llvm.org/viewvc/llvm-project?rev=115760&view=rev
Log:
Port commit 104420 (grosbach) from llvm-gcc:
Hook up __builtin_longjmp() to eh.sjlj.longjmp
Modified:
dragonegg/trunk/llvm-convert.cpp
Modified: dragonegg/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-convert.cpp?rev=115760&r1=115759&r2=115760&view=diff
==============================================================================
--- dragonegg/trunk/llvm-convert.cpp (original)
+++ dragonegg/trunk/llvm-convert.cpp Wed Oct 6 02:05:57 2010
@@ -4514,6 +4514,17 @@
return false;
}
}
+#if defined(TARGET_ARM) && defined(CONFIG_DARWIN_H)
+ Value *Buf = Emit(TREE_VALUE(arglist), 0);
+ Buf = Builder.CreateBitCast(Buf, Type::getInt8Ty(Context)->getPointerTo());
+ Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
+ Intrinsic::eh_sjlj_longjmp),
+ Buf);
+ Result = 0;
+ return true;
+#else
+ return false;
+#endif
}
case BUILT_IN_APPLY_ARGS:
case BUILT_IN_APPLY:
More information about the llvm-commits
mailing list