[llvm-commits] [llvm-gcc-4.2] r46069 - /llvm-gcc-4.2/trunk/gcc/ada/utils.c
Duncan Sands
baldrick at free.fr
Wed Jan 16 06:43:44 PST 2008
Author: baldrick
Date: Wed Jan 16 08:43:39 2008
New Revision: 46069
URL: http://llvm.org/viewvc/llvm-project?rev=46069&view=rev
Log:
Mark the Ada exception begin handler 'nothrow'.
This can reduce the amount of eh code output,
and is safe since currently the handler... does
nothing at all!
Modified:
llvm-gcc-4.2/trunk/gcc/ada/utils.c
Modified: llvm-gcc-4.2/trunk/gcc/ada/utils.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/ada/utils.c?rev=46069&r1=46068&r2=46069&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/ada/utils.c (original)
+++ llvm-gcc-4.2/trunk/gcc/ada/utils.c Wed Jan 16 08:43:39 2008
@@ -571,6 +571,8 @@
ptr_void_type_node,
endlink)),
NULL_TREE, false, true, true, NULL, Empty);
+ /* LLVM local */
+ TREE_NOTHROW (begin_handler_decl) = 1;
end_handler_decl
= create_subprog_decl (get_identifier ("__gnat_end_handler"), NULL_TREE,
More information about the llvm-commits
mailing list