comparison gen/tollvm.cpp @ 99:a676a7743642 trunk

[svn r103] Array comparisons are now fully implemented, that is - to the extent that TypeInfo is.
author lindquist
date Thu, 15 Nov 2007 00:24:44 +0100
parents 6789050b5ad1
children 5071469303d4
comparison
equal deleted inserted replaced
98:6789050b5ad1 99:a676a7743642
1688 else if (s->parent) 1688 else if (s->parent)
1689 return DtoIsTemplateInstance(s->parent); 1689 return DtoIsTemplateInstance(s->parent);
1690 return false; 1690 return false;
1691 } 1691 }
1692 1692
1693 //////////////////////////////////////////////////////////////////////////////////////////
1694
1693 void DtoLazyStaticInit(bool istempl, llvm::Value* gvar, Initializer* init, Type* t) 1695 void DtoLazyStaticInit(bool istempl, llvm::Value* gvar, Initializer* init, Type* t)
1694 { 1696 {
1695 // create a flag to make sure initialization only happens once 1697 // create a flag to make sure initialization only happens once
1696 llvm::GlobalValue::LinkageTypes gflaglink = istempl ? llvm::GlobalValue::WeakLinkage : llvm::GlobalValue::InternalLinkage; 1698 llvm::GlobalValue::LinkageTypes gflaglink = istempl ? llvm::GlobalValue::WeakLinkage : llvm::GlobalValue::InternalLinkage;
1697 std::string gflagname(gvar->getName()); 1699 std::string gflagname(gvar->getName());