mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
Raise min LLVM version to 6.0 (#3493)
This commit is contained in:
parent
4e36492f7b
commit
834f666ce5
89 changed files with 202 additions and 7209 deletions
|
@ -28,14 +28,14 @@ IrFunction::IrFunction(FuncDeclaration *fd)
|
|||
}
|
||||
|
||||
void IrFunction::setNeverInline() {
|
||||
assert(!func->getAttributes().hasAttribute(LLAttributeSet::FunctionIndex,
|
||||
assert(!func->getAttributes().hasAttribute(LLAttributeList::FunctionIndex,
|
||||
llvm::Attribute::AlwaysInline) &&
|
||||
"function can't be never- and always-inline at the same time");
|
||||
func->addFnAttr(llvm::Attribute::NoInline);
|
||||
}
|
||||
|
||||
void IrFunction::setAlwaysInline() {
|
||||
assert(!func->getAttributes().hasAttribute(LLAttributeSet::FunctionIndex,
|
||||
assert(!func->getAttributes().hasAttribute(LLAttributeList::FunctionIndex,
|
||||
llvm::Attribute::NoInline) &&
|
||||
"function can't be never- and always-inline at the same time");
|
||||
func->addFnAttr(llvm::Attribute::AlwaysInline);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue