comparison gen/functions.cpp @ 1018:e8c6dbcd33d1

- Fixed x86-32 C ABI for complex number return values. - Removed unused code from the ABI class.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 01 Mar 2009 19:01:05 +0100
parents 7a0238db1962
children 9167d492cbc2
comparison
equal deleted inserted replaced
1017:a771843e98de 1018:e8c6dbcd33d1
77 actualRettype = rettype = DtoType(rt); 77 actualRettype = rettype = DtoType(rt);
78 Logger::cout() << " (LLVM type: " << *rettype << ")\n"; 78 Logger::cout() << " (LLVM type: " << *rettype << ")\n";
79 } 79 }
80 else 80 else
81 { 81 {
82 if (gABI->returnInArg(rt)) 82 if (gABI->returnInArg(f))
83 { 83 {
84 rettype = getPtrToType(DtoType(rt)); 84 rettype = getPtrToType(DtoType(rt));
85 actualRettype = LLType::VoidTy; 85 actualRettype = LLType::VoidTy;
86 f->retInPtr = retinptr = true; 86 f->retInPtr = retinptr = true;
87 } 87 }