mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Remove a couple more 'hasAttrSomewhere' calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165470 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1356,7 +1356,10 @@ public:
|
|||||||
|
|
||||||
/// @brief Determine if any call argument is an aggregate passed by value.
|
/// @brief Determine if any call argument is an aggregate passed by value.
|
||||||
bool hasByValArgument() const {
|
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
|
/// 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.
|
/// @brief Determine if any call argument is an aggregate passed by value.
|
||||||
bool hasByValArgument() const {
|
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
|
/// getCalledFunction - Return the function called, or null if this is an
|
||||||
|
Reference in New Issue
Block a user