[svn r306] Fixed: it's now possible to compile and link llvmdc with MinGW32 and msys on Win32 :D I tried it myself ;) Building the runtime still needs some work, but it's a step in the right direction.

This commit is contained in:
Tomas Lindquist Olsen
2008-06-21 03:14:49 +02:00
parent f8b421d4ac
commit 5647598da9
11 changed files with 38 additions and 18 deletions

View File

@@ -1388,10 +1388,10 @@ static LLConstant* build_class_dtor(ClassDeclaration* cd)
#endif
}
static uint build_classinfo_flags(ClassDeclaration* cd)
static unsigned build_classinfo_flags(ClassDeclaration* cd)
{
// adapted from original dmd code
uint flags = 0;
unsigned flags = 0;
//flags |= isCOMclass(); // IUnknown
bool hasOffTi = false;
if (cd->ctor) flags |= 8;
@@ -1563,7 +1563,7 @@ void DtoDefineClassInfo(ClassDeclaration* cd)
c = defc->getOperand(9);
}
else {
uint flags = build_classinfo_flags(cd);
unsigned flags = build_classinfo_flags(cd);
c = DtoConstUint(flags);
}
inits.push_back(c);