diff gen/declarations.cpp @ 1504:855f188aab7a

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.
author Robert Clipsham <robert@octarineparrot.com>
date Thu, 18 Jun 2009 15:44:04 +0100
parents 48747003a5de
children ad7f2f1862d6
line wrap: on
line diff
--- a/gen/declarations.cpp	Tue Jun 16 15:37:40 2009 +0200
+++ b/gen/declarations.cpp	Thu Jun 18 15:44:04 2009 +0100
@@ -96,7 +96,7 @@
     // 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