Simplify code by using the right type.

Removes some comditional compiling by replacing unsigned with llvm::Attributes.
This commit is contained in:
kai
2012-07-29 18:18:36 +02:00
parent dbb5a34eda
commit b53544b389
7 changed files with 1 additions and 57 deletions

View File

@@ -34,11 +34,7 @@ bool DtoIsPassedByRef(Type* type)
return (t == Tstruct || t == Tsarray);
}
#if LDC_LLVM_VER == 300
unsigned DtoShouldExtend(Type* type)
#else
llvm::Attributes DtoShouldExtend(Type* type)
#endif
{
type = type->toBasetype();
if (type->isintegral())