diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-09-26 21:48:26 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-09-26 21:48:26 +0000 |
commit | 863bab689aa85a6384fc6f3c26b7ccaa287930f2 (patch) | |
tree | f4394fe795d78d33fcd1e51d931d2f01199689e5 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | c03a0c241e9c13549e6e8e7f4f50d81cc5b0a76e (diff) | |
download | bcm5719-llvm-863bab689aa85a6384fc6f3c26b7ccaa287930f2.tar.gz bcm5719-llvm-863bab689aa85a6384fc6f3c26b7ccaa287930f2.zip |
Remove the `hasFnAttr' method from Function.
The hasFnAttr method has been replaced by querying the Attributes explicitly. No
intended functionality change.
llvm-svn: 164725
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackProtector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/StackProtector.cpp b/llvm/lib/CodeGen/StackProtector.cpp index a04ac3fbc10..a58c1446598 100644 --- a/llvm/lib/CodeGen/StackProtector.cpp +++ b/llvm/lib/CodeGen/StackProtector.cpp @@ -137,10 +137,10 @@ bool StackProtector::ContainsProtectableArray(Type *Ty, bool InStruct) const { /// add a guard variable to functions that call alloca, and functions with /// buffers larger than SSPBufferSize bytes. bool StackProtector::RequiresStackProtector() const { - if (F->hasFnAttr(Attribute::StackProtectReq)) + if (F->getFnAttributes().hasStackProtectReqAttr()) return true; - if (!F->hasFnAttr(Attribute::StackProtect)) + if (!F->getFnAttributes().hasStackProtectAttr()) return false; for (Function::iterator I = F->begin(), E = F->end(); I != E; ++I) { |