comparison gen/todebug.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 5a54b39af6d6
children a7a9e461512a
comparison
equal deleted inserted replaced
1501:8b9f236dd051 1504:855f188aab7a
406 ////////////////////////////////////////////////////////////////////////////////////////////////// 406 //////////////////////////////////////////////////////////////////////////////////////////////////
407 407
408 static llvm::DIGlobalVariable dwarfGlobalVariable(LLGlobalVariable* ll, VarDeclaration* vd) 408 static llvm::DIGlobalVariable dwarfGlobalVariable(LLGlobalVariable* ll, VarDeclaration* vd)
409 { 409 {
410 #if DMDV2 410 #if DMDV2
411 assert(vd->isDataseg() || (vd->storage_class & (STCconst | STCinvariant) && vd->init)); 411 assert(vd->isDataseg() || (vd->storage_class & (STCconst | STCimmutable) && vd->init));
412 #else 412 #else
413 assert(vd->isDataseg()); 413 assert(vd->isDataseg());
414 #endif 414 #endif
415 llvm::DICompileUnit compileUnit = DtoDwarfCompileUnit(gIR->dmodule); 415 llvm::DICompileUnit compileUnit = DtoDwarfCompileUnit(gIR->dmodule);
416 416