mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 00:20:40 +03:00
Removed redundant global.params.cpu field.
Now that we have global.params.targetTriple, the information is only duplicated.
This commit is contained in:
parent
bee0b9eba1
commit
5f3ba41574
13 changed files with 55 additions and 57 deletions
|
@ -38,10 +38,16 @@ LLType* DtoComplexBaseType(Type* t)
|
|||
case Tcomplex32: return LLType::getFloatTy(gIR->context());
|
||||
case Tcomplex64: return LLType::getDoubleTy(gIR->context());
|
||||
case Tcomplex80:
|
||||
if ((global.params.cpu == ARCHx86) || (global.params.cpu == ARCHx86_64))
|
||||
if ((global.params.targetTriple.getArch() == llvm::Triple::x86) ||
|
||||
global.params.targetTriple.getArch() == llvm::Triple::x86_64)
|
||||
{
|
||||
return LLType::getX86_FP80Ty(gIR->context());
|
||||
else if (global.params.cpu == ARCHppc || global.params.cpu == ARCHppc_64)
|
||||
}
|
||||
else if (global.params.targetTriple.getArch() == llvm::Triple::ppc ||
|
||||
global.params.targetTriple.getArch() == llvm::Triple::ppc64)
|
||||
{
|
||||
return LLType::getPPC_FP128Ty(gIR->context());
|
||||
}
|
||||
else
|
||||
return LLType::getDoubleTy(gIR->context());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue