Mercurial > projects > ldc
diff gen/tollvm.cpp @ 1419:a6dfd3cb5b99 0.9.1
Error instead of assert on delegate literals as constant expressions.
Make function literal linkage internal inside functions and external otherwise.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Wed, 27 May 2009 19:20:18 +0200 |
parents | 63f4afd01036 |
children | 83bdf7bed9c5 |
line wrap: on
line diff
--- a/gen/tollvm.cpp Mon May 25 12:50:40 2009 +0200 +++ b/gen/tollvm.cpp Wed May 27 19:20:18 2009 +0200 @@ -265,9 +265,6 @@ // extern(C) functions are always external else if (ft->linkage == LINKc) return llvm::GlobalValue::ExternalLinkage; - // Function & delegate literals, foreach bodies and lazy parameters: internal linkage - else if (fdecl->isFuncLiteralDeclaration()) - return llvm::GlobalValue::InternalLinkage; } // class else if (ClassDeclaration* cd = sym->isClassDeclaration())