summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/InferFunctionAttrs.cpp
diff options
context:
space:
mode:
authorEvandro Menezes <e.menezes@samsung.com>2019-04-04 22:40:06 +0000
committerEvandro Menezes <e.menezes@samsung.com>2019-04-04 22:40:06 +0000
commit85bd3978ae4e1c16fa8fa4bc27d0393d1d2265ea (patch)
treea34b115e832741a6bbc24703da317621c657a8bf /llvm/lib/Transforms/IPO/InferFunctionAttrs.cpp
parent665b6b30ddeae26a3d215659f703bbe8a47cba77 (diff)
downloadbcm5719-llvm-85bd3978ae4e1c16fa8fa4bc27d0393d1d2265ea.tar.gz
bcm5719-llvm-85bd3978ae4e1c16fa8fa4bc27d0393d1d2265ea.zip
[IR] Refactor attribute methods in Function class (NFC)
Rename the functions that query the optimization kind attributes. Differential revision: https://reviews.llvm.org/D60287 llvm-svn: 357731
Diffstat (limited to 'llvm/lib/Transforms/IPO/InferFunctionAttrs.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/InferFunctionAttrs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/InferFunctionAttrs.cpp b/llvm/lib/Transforms/IPO/InferFunctionAttrs.cpp
index dfe375de65d..7f5511e008e 100644
--- a/llvm/lib/Transforms/IPO/InferFunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/InferFunctionAttrs.cpp
@@ -25,7 +25,7 @@ static bool inferAllPrototypeAttributes(Module &M,
for (Function &F : M.functions())
// We only infer things using the prototype and the name; we don't need
// definitions.
- if (F.isDeclaration() && !F.optForNone())
+ if (F.isDeclaration() && !F.hasOptNone())
Changed |= inferLibFuncAttributes(F, TLI);
return Changed;
OpenPOWER on IntegriCloud