- Versioned Expresssion::toElem with #if IN_DMD/IN_LLVM.

- Eliminated the DLRValue DValue.

- Implemented proactive handling of l-value CastExpS.

- Minor tweak in runtime memory.d .
This commit is contained in:
Tomas Lindquist Olsen
2009-03-28 05:00:43 +01:00
parent 06a29342d3
commit 36f6ebc77f
12 changed files with 594 additions and 482 deletions

View File

@@ -68,12 +68,9 @@ private
import tango.stdc.posix.dlfcn;
}
}
version(LDC)
pragma(intrinsic, "llvm.frameaddress")
{
pragma(intrinsic, "llvm.frameaddress")
{
void* llvm_frameaddress(uint level=0);
}
void* llvm_frameaddress(uint level=0);
}
}
@@ -147,11 +144,7 @@ extern (C) void* rt_stackBottom()
*/
extern (C) void* rt_stackTop()
{
version(LDC)
{
return llvm_frameaddress();
}
else version( D_InlineAsm_X86 )
version( D_InlineAsm_X86 )
{
asm
{
@@ -162,7 +155,7 @@ extern (C) void* rt_stackTop()
}
else
{
static assert( false, "Architecture not supported." );
return llvm_frameaddress();
}
}