More changes to the Attributes class in LLVM 3.2.

This commit is contained in:
kai
2012-10-20 17:22:55 +02:00
parent 141dfa338e
commit fde625b33d
5 changed files with 37 additions and 37 deletions

View File

@@ -44,7 +44,7 @@ llvm::Attributes DtoShouldExtend(Type* type)
case Tint8:
case Tint16:
#if LDC_LLVM_VER >= 302
return llvm::Attributes::get(gIR->context(), llvm::Attributes::Builder().addAttribute(llvm::Attributes::SExt));
return llvm::Attributes::get(gIR->context(), llvm::AttrBuilder().addAttribute(llvm::Attributes::SExt));
#else
return llvm::Attribute::SExt;
#endif
@@ -52,7 +52,7 @@ llvm::Attributes DtoShouldExtend(Type* type)
case Tuns8:
case Tuns16:
#if LDC_LLVM_VER >= 302
return llvm::Attributes::get(gIR->context(), llvm::Attributes::Builder().addAttribute(llvm::Attributes::ZExt));
return llvm::Attributes::get(gIR->context(), llvm::AttrBuilder().addAttribute(llvm::Attributes::ZExt));
#else
return llvm::Attribute::ZExt;
#endif