mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-23 04:21:50 +01:00
Removed redundant global.params.os field.
I hope I have untangled the checks for "native" Windows (Triple::Win32) vs. Windows/MinGW/Cygwin (Triple::isOSWindows) correctly. MinGW needs some default libraries as well, has to be fixed later.
This commit is contained in:
@@ -965,7 +965,7 @@ LLStructType* DtoMutexType()
|
||||
// The structures defined here must be the same as in druntime/src/rt/critical.c
|
||||
|
||||
// Windows
|
||||
if (global.params.os == OSWindows)
|
||||
if (global.params.targetTriple.isOSWindows())
|
||||
{
|
||||
llvm::Type *VoidPtrTy = llvm::Type::getInt8PtrTy(gIR->context());
|
||||
llvm::Type *Int32Ty = llvm::Type::getInt32Ty(gIR->context());
|
||||
@@ -993,7 +993,7 @@ LLStructType* DtoMutexType()
|
||||
}
|
||||
|
||||
// FreeBSD
|
||||
else if (global.params.os == OSFreeBSD) {
|
||||
else if (global.params.targetTriple.getOS() == llvm::Triple::FreeBSD) {
|
||||
// Just a pointer
|
||||
return LLStructType::get(gIR->context(), DtoSize_t());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user