mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-10-01 01:29:24 +02:00
[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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user