summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-09 01:03:48 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-09 01:03:48 +0000
commit2fd7765ae50aa993bc706df8fea7d0685ea65bf2 (patch)
tree8e0e9e0a3d576a5b26631c3fb0c95d1fb5199b60
parent3fa5709342500d827ffc3729b3fe1adf6bd14eaa (diff)
downloadllvm-2fd7765ae50aa993bc706df8fea7d0685ea65bf2.tar.gz
llvm-2fd7765ae50aa993bc706df8fea7d0685ea65bf2.tar.bz2
llvm-2fd7765ae50aa993bc706df8fea7d0685ea65bf2.tar.xz
Remove a couple more 'hasAttrSomewhere' calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165470 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Instructions.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 55ab1b7ff0..bed828a885 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -1356,7 +1356,10 @@ public:
/// @brief Determine if any call argument is an aggregate passed by value.
bool hasByValArgument() const {
- return AttributeList.hasAttrSomewhere(Attribute::ByVal);
+ for (unsigned I = 0, E = AttributeList.getNumAttrs(); I != E; ++I)
+ if (AttributeList.getAttributesAtIndex(I).hasByValAttr())
+ return true;
+ return false;
}
/// getCalledFunction - Return the function called, or null if this is an
@@ -3128,7 +3131,10 @@ public:
/// @brief Determine if any call argument is an aggregate passed by value.
bool hasByValArgument() const {
- return AttributeList.hasAttrSomewhere(Attribute::ByVal);
+ for (unsigned I = 0, E = AttributeList.getNumAttrs(); I != E; ++I)
+ if (AttributeList.getAttributesAtIndex(I).hasByValAttr())
+ return true;
+ return false;
}
/// getCalledFunction - Return the function called, or null if this is an