Mercurial > projects > ldc
diff gen/tollvm.h @ 149:4c577c2b7229 trunk
[svn r155] Fixed a bunch of linkage problems (especially with templates)
author | lindquist |
---|---|
date | Mon, 24 Mar 2008 19:43:02 +0100 |
parents | 0e28624814e8 |
children | cea8dcfa76df |
line wrap: on
line diff
--- a/gen/tollvm.h Sat Mar 22 12:20:32 2008 +0100 +++ b/gen/tollvm.h Mon Mar 24 19:43:02 2008 +0100 @@ -21,8 +21,10 @@ llvm::Value* DtoDelegateCopy(llvm::Value* dst, llvm::Value* src); llvm::Value* DtoCompareDelegate(TOK op, llvm::Value* lhs, llvm::Value* rhs); -// return linkage types for general cases -llvm::GlobalValue::LinkageTypes DtoLinkage(PROT prot, uint stc); +// return linkage type for symbol using the current ir state for context +llvm::GlobalValue::LinkageTypes DtoLinkage(Dsymbol* sym); +llvm::GlobalValue::LinkageTypes DtoInternalLinkage(Dsymbol* sym); +llvm::GlobalValue::LinkageTypes DtoExternalLinkage(Dsymbol* sym); // convert DMD calling conv to LLVM unsigned DtoCallingConv(LINK l);