mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-21 06:03:14 +01:00
- 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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user