diff dmd/backend/Util.d @ 140:31c086f76669

dmd.lib now only contains the backend backward references from the backend to the frontend are implemented in ddmd win32_lib.mak is replaced by a patch also fixed VisualD project file predefined versions
author Trass3r
date Tue, 14 Sep 2010 01:54:48 +0200
parents e28b18c23469
children af724d3510d7
line wrap: on
line diff
--- a/dmd/backend/Util.d	Tue Sep 14 01:13:58 2010 +0200
+++ b/dmd/backend/Util.d	Tue Sep 14 01:54:48 2010 +0200
@@ -167,7 +167,7 @@
 	elem_p el_copytree(elem_p);
 	int el_allbits(elem *e, int bit);
 	block* block_goto(Blockx* bctx, BC bc, block* bn);
-	block* block_calloc(Blockx* blx);
+//	block* block_calloc(Blockx* blx);
 	targ_size_t type_paramsize_i(type* t);
 	int os_critsecsize();
 	void el_setVolatile(elem* e);
@@ -175,6 +175,15 @@
 	elem* el_const(tym_t, eve*);
 	elem *el_params(void** args, int length);
 	
+	/****************************************
+	 * Allocate a new block, and set the tryblock.
+	 */
+	block *block_calloc(Blockx *blx)
+	{
+		block* b = block_calloc();
+		b.Btry = blx.tryblock;
+		return b;
+	}
 	
 	version (SEH) {
 		void nteh_declarvars(Blockx* bx);