Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
350:b85cf5faccfc | 351:f273f5c58a9a |
---|---|
279 | 279 |
280 ////////////////////////////////////////////////////////////////////////////////////////// | 280 ////////////////////////////////////////////////////////////////////////////////////////// |
281 | 281 |
282 unsigned DtoCallingConv(LINK l) | 282 unsigned DtoCallingConv(LINK l) |
283 { | 283 { |
284 if (l == LINKc) | 284 if (l == LINKc || l == LINKcpp) |
285 return llvm::CallingConv::C; | 285 return llvm::CallingConv::C; |
286 else if (l == LINKd || l == LINKdefault) | 286 else if (l == LINKd || l == LINKdefault) |
287 return llvm::CallingConv::Fast; | 287 return llvm::CallingConv::Fast; |
288 else if (l == LINKwindows) | 288 else if (l == LINKwindows) |
289 return llvm::CallingConv::X86_StdCall; | 289 return llvm::CallingConv::X86_StdCall; |