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

View File

@@ -220,7 +220,11 @@ static void LLVM_D_BuildRuntimeModule()
// Construct some attribute lists used below (possibly multiple times)
#if LDC_LLVM_VER >= 302
#if LDC_LLVM_VER >= 303
llvm::AttributeSet
#else
llvm::AttrListPtr
#endif
NoAttrs,
Attr_NoAlias
= NoAttrs.addAttr(gIR->context(), 0, llvm::Attributes::get(gIR->context(), llvm::AttrBuilder().addAttribute(llvm::Attributes::NoAlias))),