mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +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:
@@ -38,13 +38,12 @@ LLType* DtoComplexBaseType(Type* t)
|
||||
case Tcomplex32: return LLType::getFloatTy(gIR->context());
|
||||
case Tcomplex64: return LLType::getDoubleTy(gIR->context());
|
||||
case Tcomplex80:
|
||||
if ((global.params.targetTriple.getArch() == llvm::Triple::x86) ||
|
||||
global.params.targetTriple.getArch() == llvm::Triple::x86_64)
|
||||
llvm::Triple::ArchType const a = global.params.targetTriple.getArch();
|
||||
if (a == llvm::Triple::x86 || a == llvm::Triple::x86_64)
|
||||
{
|
||||
return LLType::getX86_FP80Ty(gIR->context());
|
||||
}
|
||||
else if (global.params.targetTriple.getArch() == llvm::Triple::ppc ||
|
||||
global.params.targetTriple.getArch() == llvm::Triple::ppc64)
|
||||
else if (a == llvm::Triple::ppc || a == llvm::Triple::ppc64)
|
||||
{
|
||||
return LLType::getPPC_FP128Ty(gIR->context());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user