summaryrefslogtreecommitdiffstats
path: root/llvm
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
commitf8a18efe0a681f1e7812273a6c5fb7a0883c9fc7 (patch)
tree6d29bd9776b4fe8127d82155aced8223d37d0657 /llvm
parentf1c60d6d047481e152fdde5e7c0f71057cff4fd0 (diff)
downloadbcm5719-llvm-f8a18efe0a681f1e7812273a6c5fb7a0883c9fc7.tar.gz
bcm5719-llvm-f8a18efe0a681f1e7812273a6c5fb7a0883c9fc7.zip
Remove a couple more 'hasAttrSomewhere' calls.
llvm-svn: 165470
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Instructions.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h
index 55ab1b7ff08..bed828a8855 100644
--- a/llvm/include/llvm/Instructions.h
+++ b/llvm/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
OpenPOWER on IntegriCloud