diff dmd/backend/glue.d @ 174:af724d3510d7

lot os toCBuffer methods implemented moved shared Type.* stuff into Global
author korDen
date Sun, 10 Oct 2010 03:47:23 +0400
parents 25ede4f66bda
children 94b6033c07f3
line wrap: on
line diff
--- a/dmd/backend/glue.d	Sun Oct 10 01:55:35 2010 +0400
+++ b/dmd/backend/glue.d	Sun Oct 10 03:47:23 2010 +0400
@@ -370,6 +370,8 @@
     objbuf.inc = 0;
 }
 
+static __gshared int count;
+
 void obj_write_deferred(Library library)
 {
 	for (int i = 0; i < obj_symbols_towrite.dim; i++)
@@ -392,7 +394,6 @@
 
 		obj_start(cast(char*)toStringz(mname));
 
-		static int count;
 		count++;		// sequence for generating names
 
 		/* Create a module that's a doppelganger of m, with just