mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-14 23:29:10 +03:00
Initialize new TargetC fields
This commit is contained in:
parent
8b3b566a4a
commit
a3716c0044
2 changed files with 4 additions and 1 deletions
|
@ -795,7 +795,6 @@ version (IN_LLVM)
|
|||
|
||||
TypeTuple toArgTypes(Type t);
|
||||
bool isReturnOnStack(TypeFunction tf, bool needsThis);
|
||||
// unused: ulong parameterSize(const ref Loc loc, Type t);
|
||||
bool preferPassByRef(Type t);
|
||||
Expression getTargetInfo(const(char)* name, const ref Loc loc);
|
||||
bool isCalleeDestroyingArgs(TypeFunction tf);
|
||||
|
|
|
@ -106,7 +106,11 @@ void Target::_init(const Param ¶ms) {
|
|||
maxStaticDataSize = std::numeric_limits<unsigned long long>::max();
|
||||
|
||||
c.crtDestructorsSupported = true; // unused as of 2.099
|
||||
c.boolsize = 1;
|
||||
c.shortsize = 2;
|
||||
c.intsize = 4;
|
||||
c.longsize = (ptrsize == 8) && !isMSVC ? 8 : 4;
|
||||
c.long_longsize = 8;
|
||||
c.long_doublesize = realsize;
|
||||
c.wchar_tsize = triple.isOSWindows() ? 2 : 4;
|
||||
c.bitFieldStyle =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue