diff dmd/codegen/Util.d @ 22:fd4acc376c45

Implemented object file output and linking on linux.
author Robert Clipsham <robert@octarineparrot.com>
date Thu, 08 Apr 2010 04:21:03 +0100
parents 63623152e82a
children f708f0452e81
line wrap: on
line diff
--- a/dmd/codegen/Util.d	Wed Apr 07 00:51:29 2010 +0100
+++ b/dmd/codegen/Util.d	Thu Apr 08 04:21:03 2010 +0100
@@ -14,6 +14,7 @@
 import dmd.Argument;
 import dmd.STC;
 import dmd.Global;
+import dmd.Module;
 import dmd.InterfaceDeclaration;
 import dmd.AggregateDeclaration;
 import dmd.AttribDeclaration;
@@ -1121,7 +1122,7 @@
     s.Sflags |= SFLnodebug;
     s.Stype = t;
 version (ELFOBJ_OR_MACHOBJ) {
-    s.Sseg = DATA;
+    s.Sseg = Segment.DATA;
 }
     slist_add(s);
     return s;
@@ -1149,4 +1150,4 @@
 			s.lblock.Btry = null;
     }
     return s.lblock;
-}
\ No newline at end of file
+}