Mercurial > projects > ldc
comparison gen/toobj.c @ 22:a6360e68134a trunk
[svn r26] * Fixed templates defining a constant value
* Fixed problem with slice-slice copy assignment if a side was a temporary slice
author | lindquist |
---|---|
date | Thu, 04 Oct 2007 07:35:02 +0200 |
parents | 8d45266bbabe |
children | 77e3d1ddae3f |
comparison
equal
deleted
inserted
replaced
21:8d45266bbabe | 22:a6360e68134a |
---|---|
495 assert(llvmValue); | 495 assert(llvmValue); |
496 return; | 496 return; |
497 } | 497 } |
498 | 498 |
499 // global variable or magic | 499 // global variable or magic |
500 if (!parent || parent->isModule()) | 500 if (isDataseg()) |
501 { | 501 { |
502 bool _isconst = isConst(); | 502 bool _isconst = isConst(); |
503 if (!_isconst) | 503 if (!_isconst) |
504 _isconst = (storage_class & STCconst) ? true : false; // doesn't seem to work ): | 504 _isconst = (storage_class & STCconst) ? true : false; // doesn't seem to work ): |
505 llvm::GlobalValue::LinkageTypes _linkage = LLVM_DtoLinkage(protection, storage_class); | 505 llvm::GlobalValue::LinkageTypes _linkage = LLVM_DtoLinkage(protection, storage_class); |