mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-11-27 11:23:51 +01:00
[svn r260] Changed some of the LLVMDC specific code in the Tango core and did some minor cleanups.
This commit is contained in:
@@ -244,7 +244,30 @@ else version( Posix )
|
||||
}
|
||||
body
|
||||
{
|
||||
version( D_InlineAsm_X86 )
|
||||
version( LLVMDC )
|
||||
{
|
||||
// put registers on the stack
|
||||
version(D_InlineAsm_X86)
|
||||
{
|
||||
uint _eax, _ecx, _edx, _ebx, _esp, _ebp, _esi, _edi;
|
||||
asm
|
||||
{
|
||||
mov _eax, EAX;
|
||||
mov _ecx, ECX;
|
||||
mov _edx, EDX;
|
||||
mov _ebx, EBX;
|
||||
mov _esp, ESP;
|
||||
mov _ebp, EBP;
|
||||
mov _esi, ESI;
|
||||
mov _edi, EDI;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// FIXME
|
||||
}
|
||||
}
|
||||
else version( D_InlineAsm_X86 )
|
||||
{
|
||||
asm
|
||||
{
|
||||
@@ -255,10 +278,6 @@ else version( Posix )
|
||||
{
|
||||
__builtin_unwind_init();
|
||||
}
|
||||
else version( LLVMDC )
|
||||
{
|
||||
// TODO below as well
|
||||
}
|
||||
else
|
||||
{
|
||||
static assert( false, "Architecture not supported." );
|
||||
@@ -301,7 +320,11 @@ else version( Posix )
|
||||
}
|
||||
}
|
||||
|
||||
version( D_InlineAsm_X86 )
|
||||
version( LLVMDC )
|
||||
{
|
||||
// nothing to do
|
||||
}
|
||||
else version( D_InlineAsm_X86 )
|
||||
{
|
||||
asm
|
||||
{
|
||||
@@ -312,10 +335,6 @@ else version( Posix )
|
||||
{
|
||||
// registers will be popped automatically
|
||||
}
|
||||
else version( LLVMDC )
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
else
|
||||
{
|
||||
static assert( false, "Architecture not supported." );
|
||||
|
||||
Reference in New Issue
Block a user