mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
Add changes for LLVM 3.2.
This commit is contained in:
parent
bf2aaaca84
commit
dbb5a34eda
7 changed files with 34 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue