AttrListPtr is renamed to AttributeSet in LLVM 3.3.

This commit is contained in:
kai
2012-12-09 19:48:39 +01:00
parent b92c461147
commit 1a06130cfa
4 changed files with 20 additions and 2 deletions
+4 -1
View File
@@ -717,7 +717,10 @@ DValue* DtoCallFunction(Loc& loc, Type* resulttype, DValue* fnval, Expressions*
}
// set calling convention and parameter attributes
#if LDC_LLVM_VER >= 302
#if LDC_LLVM_VER >= 303
llvm::AttributeSet attrlist = llvm::AttributeSet::get(gIR->context(),
llvm::ArrayRef<llvm::AttributeWithIndex>(attrs));
#elif LDC_LLVM_VER == 302
llvm::AttrListPtr attrlist = llvm::AttrListPtr::get(gIR->context(),
llvm::ArrayRef<llvm::AttributeWithIndex>(attrs));
#else