comparison gen/tollvm.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 8b9f236dd051
children ad7f2f1862d6
comparison
equal deleted inserted replaced
1501:8b9f236dd051 1504:855f188aab7a
52 return llvm::Attribute::None; 52 return llvm::Attribute::None;
53 } 53 }
54 54
55 const LLType* DtoType(Type* t) 55 const LLType* DtoType(Type* t)
56 { 56 {
57 #if DMDV2 57 t = stripModifiers( t );
58 t = t->mutableOf();
59 #endif
60 58
61 if (t->irtype) 59 if (t->irtype)
62 { 60 {
63 return t->irtype->get(); 61 return t->irtype->get();
64 } 62 }