mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
More changes to the Attributes class in LLVM 3.2.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user