AttrlistPtr::get() now requires context as first argument.

This is the first LLVM 3.3 related change.
This commit is contained in:
kai
2012-11-21 22:10:26 +01:00
parent 9162724956
commit 2fec23b84e
2 changed files with 6 additions and 2 deletions

View File

@@ -591,7 +591,9 @@ static void set_param_attrs(TypeFunction* f, llvm::Function* func, FuncDeclarati
}
}
#if LDC_LLVM_VER >= 302
#if LDC_LLVM_VER >= 303
llvm::AttrListPtr attrlist = llvm::AttrListPtr::get(gIR->context(), llvm::ArrayRef<llvm::AttributeWithIndex>(attrs));
#elif 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());

View File

@@ -717,7 +717,9 @@ 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::AttrListPtr attrlist = llvm::AttrListPtr::get(gIR->context(), llvm::ArrayRef<llvm::AttributeWithIndex>(attrs));
#elif 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());