comparison gen/naked.cpp @ 1020:474d7dd54d43

Remember to set asm type back to void and n=0 when rewriting to sret asm return.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 01 Mar 2009 20:22:10 +0100
parents 80490f65d4e1
children 6bb04dbee21f
comparison
equal deleted inserted replaced
1019:80490f65d4e1 1020:474d7dd54d43
213 as->out_c = "=A,"; 213 as->out_c = "=A,";
214 asmblock->retty = LLType::Int64Ty; 214 asmblock->retty = LLType::Int64Ty;
215 } else { 215 } else {
216 // cdouble and creal extern(C) are returned in pointer 216 // cdouble and creal extern(C) are returned in pointer
217 // don't add anything! 217 // don't add anything!
218 asmblock->retty = LLType::VoidTy;
219 asmblock->retn = 0;
218 return; 220 return;
219 } 221 }
220 } else { 222 } else {
221 as->out_c = "={st},"; 223 as->out_c = "={st},";
222 } 224 }