diff gen/tollvm.cpp @ 351:f273f5c58a9a trunk

[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).
author lindquist
date Mon, 14 Jul 2008 03:23:43 +0200
parents e20ce6d8d374
children 8014dbd24605
line wrap: on
line diff
--- a/gen/tollvm.cpp	Mon Jul 14 01:03:53 2008 +0200
+++ b/gen/tollvm.cpp	Mon Jul 14 03:23:43 2008 +0200
@@ -281,7 +281,7 @@
 
 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;