r357731 - [IR] Refactor attribute methods in Function class (NFC)
Evandro Menezes via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 4 15:40:06 PDT 2019
Author: evandro
Date: Thu Apr 4 15:40:06 2019
New Revision: 357731
URL: http://llvm.org/viewvc/llvm-project?rev=357731&view=rev
Log:
[IR] Refactor attribute methods in Function class (NFC)
Rename the functions that query the optimization kind attributes.
Differential revision: https://reviews.llvm.org/D60287
Modified:
cfe/trunk/lib/CodeGen/CGCall.cpp
Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=357731&r1=357730&r2=357731&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Thu Apr 4 15:40:06 2019
@@ -1809,7 +1809,7 @@ void CodeGenModule::ConstructDefaultFnAt
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);
}
More information about the cfe-commits
mailing list