[svn r372] Fixed extern(C++) handling now same as DMD, which is to treat it like extern(C).

Fixed a problem in resolving struct types where the size of elements might not yet be known. Switched to using DMD size() instead
of LLVM ABI size (TargetData).
This commit is contained in:
Tomas Lindquist Olsen
2008-07-14 03:23:43 +02:00
parent ee5d84a1fa
commit 45e8999c88
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ llvm::GlobalValue::LinkageTypes DtoExternalLinkage(Dsymbol* sym)
unsigned DtoCallingConv(LINK l)
{
if (l == LINKc)
if (l == LINKc || l == LINKcpp)
return llvm::CallingConv::C;
else if (l == LINKd || l == LINKdefault)
return llvm::CallingConv::Fast;