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/Analysis/CodeMetrics.cpp | |
parent | c03a0c241e9c13549e6e8e7f4f50d81cc5b0a76e (diff) | |
download | llvm-863bab689aa85a6384fc6f3c26b7ccaa287930f2.zip llvm-863bab689aa85a6384fc6f3c26b7ccaa287930f2.tar.gz llvm-863bab689aa85a6384fc6f3c26b7ccaa287930f2.tar.bz2 |
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/Analysis/CodeMetrics.cpp')
-rw-r--r-- | llvm/lib/Analysis/CodeMetrics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/CodeMetrics.cpp b/llvm/lib/Analysis/CodeMetrics.cpp index acda34b..9a1ca63 100644 --- a/llvm/lib/Analysis/CodeMetrics.cpp +++ b/llvm/lib/Analysis/CodeMetrics.cpp @@ -196,7 +196,7 @@ void CodeMetrics::analyzeFunction(Function *F, const TargetData *TD) { // as volatile if they are live across a setjmp call, and they probably // won't do this in callers. exposesReturnsTwice = F->callsFunctionThatReturnsTwice() && - !F->hasFnAttr(Attribute::ReturnsTwice); + !F->getFnAttributes().hasReturnsTwiceAttr(); // Look at the size of the callee. for (Function::const_iterator BB = F->begin(), E = F->end(); BB != E; ++BB) |