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

@@ -408,7 +408,7 @@ static llvm::DICompositeType dwarfCompositeType(Type* type, llvm::DICompileUnit
static llvm::DIGlobalVariable dwarfGlobalVariable(LLGlobalVariable* ll, VarDeclaration* vd)
{
#if DMDV2
assert(vd->isDataseg() || (vd->storage_class & (STCconst | STCinvariant) && vd->init));
assert(vd->isDataseg() || (vd->storage_class & (STCconst | STCimmutable) && vd->init));
#else
assert(vd->isDataseg());
#endif