Added a stripModifiers() function to remove shared|const|immutable storage classes in D2 (should eventually be moved to a dhelpers file rather than llvm helpers).

Replaced a few occurances of STCinvariant with STCimmutable.
This commit is contained in:
Robert Clipsham
2009-06-18 15:44:04 +01:00
parent 348192e7e7
commit f13c5e82f5
5 changed files with 78 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ void VarDeclaration::codegen(Ir* p)
// global variable
#if DMDV2
// taken from dmd2/structs
if (isDataseg() || (storage_class & (STCconst | STCinvariant) && init))
if (isDataseg() || (storage_class & (STCconst | STCimmutable) && init))
#else
if (isDataseg())
#endif