comparison gen/toobj.cpp @ 993:27956b440c0a

Fixed const/invariant struc/class fields of the form const int i = 4; they don't add a field.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Thu, 26 Feb 2009 15:24:20 +0100
parents 2667e3a145be
children 18ad5601dff7
comparison
equal deleted inserted replaced
992:6f5e40205f2a 993:27956b440c0a
865 toAlias()->toObjFile(multiobj); 865 toAlias()->toObjFile(multiobj);
866 return; 866 return;
867 } 867 }
868 868
869 // global variable or magic 869 // global variable or magic
870 #if DMDV2
871 // taken from dmd2/structs
872 if (isDataseg() || (storage_class & (STCconst | STCinvariant) && init))
873 #else
870 if (isDataseg()) 874 if (isDataseg())
875 #endif
871 { 876 {
872 Logger::println("data segment"); 877 Logger::println("data segment");
873 878
874 #if DMDV2 879 #if DMDV2
875 if (storage_class & STCmanifest) 880 if (storage_class & STCmanifest)