Add changes for LLVM 3.2.

This commit is contained in:
kai 2012-07-29 17:31:50 +02:00
parent bf2aaaca84
commit dbb5a34eda
7 changed files with 34 additions and 1 deletions

View file

@ -455,7 +455,11 @@ static void set_param_attrs(TypeFunction* f, llvm::Function* func, FuncDeclarati
}
}
#if LDC_LLVM_VER >= 302
llvm::AttrListPtr attrlist = llvm::AttrListPtr::get(llvm::ArrayRef<llvm::AttributeWithIndex>(attrs));
#else
llvm::AttrListPtr attrlist = llvm::AttrListPtr::get(attrs.begin(), attrs.end());
#endif
func->setAttributes(attrlist);
}