diff dmd/mangle.c @ 139:0ab29b838084 trunk

[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :) Fixed: tango.io.Console seems to be working now.
author lindquist
date Tue, 22 Jan 2008 00:01:16 +0100
parents c53b6e3fe49a
children 2b72433d5c8c
line wrap: on
line diff
--- a/dmd/mangle.c	Fri Jan 18 20:13:19 2008 +0100
+++ b/dmd/mangle.c	Tue Jan 22 00:01:16 2008 +0100
@@ -141,8 +141,10 @@
 	if (isMain())
 	    return "_Dmain";
 
+    if (isWinMain() || isDllMain())
+        return ident->toChars();
+
     assert(this);
-    
     return Declaration::mangle();
     }