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

@@ -13,11 +13,7 @@
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
#if LDC_LLVM_VER == 300
IrFuncTyArg::IrFuncTyArg(Type* t, bool bref, unsigned a) : type(t)
#else
IrFuncTyArg::IrFuncTyArg(Type* t, bool bref, llvm::Attributes a) : type(t)
#endif
{
ltype = t != Type::tvoid && bref ? DtoType(t->pointerTo()) : DtoType(t);
attrs = a;