diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-18 21:11:39 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-18 21:11:39 +0000 |
commit | 775438952693c261bf1b5a85143dea4f5852dcdf (patch) | |
tree | fa8e7f5c9677bc1375634402ce35a98c2c98160f /llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | |
parent | 8bee90d5f33f49d4ebcb89aac780916fe3bfc65d (diff) | |
download | bcm5719-llvm-775438952693c261bf1b5a85143dea4f5852dcdf.tar.gz bcm5719-llvm-775438952693c261bf1b5a85143dea4f5852dcdf.zip |
Push some more methods down to hide the use of the Attribute class.
Because the Attribute class is going to stop representing a collection of
attributes, limit the use of it as an aggregate in favor of using AttributeSet.
This replaces some of the uses for querying the function attributes.
llvm-svn: 172844
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index d17879b587b..63e452ba9c8 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -1176,7 +1176,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) { } Attribute FnAttrs = CallerPAL.getFnAttributes(); - if (FnAttrs.hasAttributes()) + if (CallerPAL.hasAttributes(AttributeSet::FunctionIndex)) attrVec.push_back(AttributeWithIndex::get(AttributeSet::FunctionIndex, FnAttrs)); @@ -1320,7 +1320,7 @@ InstCombiner::transformCallThroughTrampoline(CallSite CS, // Add any function attributes. Attr = Attrs.getFnAttributes(); - if (Attr.hasAttributes()) + if (Attrs.hasAttributes(AttributeSet::FunctionIndex)) NewAttrs.push_back(AttributeWithIndex::get(AttributeSet::FunctionIndex, Attr)); |