mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 13:41:47 +00:00
[ScopedNoAliasAA] collectMDInDomain should be a free function
collectMDInDomain doesn't use any class members, making it a free function is not a functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278651 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
24f7cd87f7
commit
937229d0bb
@ -42,8 +42,6 @@ public:
|
||||
|
||||
private:
|
||||
bool mayAliasInScopes(const MDNode *Scopes, const MDNode *NoAlias) const;
|
||||
void collectMDInDomain(const MDNode *List, const MDNode *Domain,
|
||||
SmallPtrSetImpl<const MDNode *> &Nodes) const;
|
||||
};
|
||||
|
||||
/// Analysis pass providing a never-invalidated alias analysis result.
|
||||
|
@ -127,9 +127,8 @@ ModRefInfo ScopedNoAliasAAResult::getModRefInfo(ImmutableCallSite CS1,
|
||||
return AAResultBase::getModRefInfo(CS1, CS2);
|
||||
}
|
||||
|
||||
void ScopedNoAliasAAResult::collectMDInDomain(
|
||||
const MDNode *List, const MDNode *Domain,
|
||||
SmallPtrSetImpl<const MDNode *> &Nodes) const {
|
||||
static void collectMDInDomain(const MDNode *List, const MDNode *Domain,
|
||||
SmallPtrSetImpl<const MDNode *> &Nodes) {
|
||||
for (const MDOperand &MDOp : List->operands())
|
||||
if (const MDNode *MD = dyn_cast<MDNode>(MDOp))
|
||||
if (AliasScopeNode(MD).getDomain() == Domain)
|
||||
|
Loading…
Reference in New Issue
Block a user