mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 09:33:27 +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:
38
dmd/mtype.c
38
dmd/mtype.c
@@ -223,36 +223,28 @@ void Type::init()
|
||||
|
||||
tvoidptr = tvoid->pointerTo();
|
||||
|
||||
// set size_t / ptrdiff_t types
|
||||
if (global.params.is64bit)
|
||||
{
|
||||
PTRSIZE = 8;
|
||||
#if !IN_LLVM
|
||||
if (global.params.isLinux)
|
||||
REALSIZE = 10;
|
||||
else
|
||||
REALSIZE = 8;
|
||||
#else
|
||||
REALSIZE = 8;
|
||||
REALPAD = 0;
|
||||
#endif
|
||||
Tsize_t = Tuns64;
|
||||
Tptrdiff_t = Tint64;
|
||||
Tsize_t = Tuns64;
|
||||
Tptrdiff_t = Tint64;
|
||||
}
|
||||
else
|
||||
{
|
||||
Tsize_t = Tuns32;
|
||||
Tptrdiff_t = Tint32;
|
||||
}
|
||||
|
||||
// set real size and padding
|
||||
if (global.params.useFP80)
|
||||
{
|
||||
REALSIZE = 12;
|
||||
REALPAD = 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
PTRSIZE = 4;
|
||||
#if IN_LLVM
|
||||
REALSIZE = 8;
|
||||
REALPAD = 0;
|
||||
#elif TARGET_LINUX
|
||||
REALSIZE = 12;
|
||||
REALPAD = 2;
|
||||
#else
|
||||
REALSIZE = 10;
|
||||
REALPAD = 0;
|
||||
#endif
|
||||
Tsize_t = Tuns32;
|
||||
Tptrdiff_t = Tint32;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user