Rename the functions that query the optimization kind attributes.
Differential revision: https://reviews.llvm.org/D60287
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@357731
91177308-0d34-0410-b5e6-
96231b3b80d8
void CodeGenModule::AddDefaultFnAttrs(llvm::Function &F) {
llvm::AttrBuilder FuncAttrs;
- ConstructDefaultFnAttrList(F.getName(), F.optForNone(),
+ ConstructDefaultFnAttrList(F.getName(), F.hasOptNone(),
/* AttrOnCallsite = */ false, FuncAttrs);
F.addAttributes(llvm::AttributeList::FunctionIndex, FuncAttrs);
}