Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1501:8b9f236dd051 | 1504:855f188aab7a |
---|---|
94 ad->codegen(p); | 94 ad->codegen(p); |
95 | 95 |
96 // global variable | 96 // global variable |
97 #if DMDV2 | 97 #if DMDV2 |
98 // taken from dmd2/structs | 98 // taken from dmd2/structs |
99 if (isDataseg() || (storage_class & (STCconst | STCinvariant) && init)) | 99 if (isDataseg() || (storage_class & (STCconst | STCimmutable) && init)) |
100 #else | 100 #else |
101 if (isDataseg()) | 101 if (isDataseg()) |
102 #endif | 102 #endif |
103 { | 103 { |
104 Logger::println("data segment"); | 104 Logger::println("data segment"); |