Mercurial > projects > ldc
comparison gen/naked.cpp @ 949:b2d27ddf8f45
changes to get the naked asm stuff working for x64
author | wilsonk@ubuntu |
---|---|
date | Tue, 10 Feb 2009 08:02:25 -0700 |
parents | 03d7c4aac654 |
children | e048e36bc155 |
comparison
equal
deleted
inserted
replaced
948:780530d1cad3 | 949:b2d27ddf8f45 |
---|---|
177 | 177 |
178 const LLType* llretTy = DtoType(fdecl->type->nextOf()); | 178 const LLType* llretTy = DtoType(fdecl->type->nextOf()); |
179 asmblock->retty = llretTy; | 179 asmblock->retty = llretTy; |
180 asmblock->retn = 1; | 180 asmblock->retn = 1; |
181 | 181 |
182 // x86 | 182 // x86 or x86_64 |
183 if (global.params.cpu == ARCHx86) | 183 if (global.params.cpu == ARCHx86 || global.params.cpu == ARCHx86_64) |
184 { | 184 { |
185 LINK l = fdecl->linkage; | 185 LINK l = fdecl->linkage; |
186 assert((l == LINKd || l == LINKc || l == LINKwindows) && "invalid linkage for asm implicit return"); | 186 assert((l == LINKd || l == LINKc || l == LINKwindows) && "invalid linkage for asm implicit return"); |
187 | 187 |
188 Type* rt = fdecl->type->nextOf()->toBasetype(); | 188 Type* rt = fdecl->type->nextOf()->toBasetype(); |