Skip to content

Commit

Permalink
GP-4792 adjust call convention analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
ghidracadabra committed Aug 5, 2024
1 parent 649c182 commit b3c9eec
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down Expand Up @@ -216,7 +216,7 @@ private AddressSetView findLocations(Program program, AddressSetView set, TaskMo
continue;
}

if (hasImportedSignatureWithinNamespace(function) ||
if (hasNonDefaultSignatureWithinNamespace(function) ||
hasDefinedParameterTypes(function)) {
functionEntries.add(function.getEntryPoint());
}
Expand All @@ -225,8 +225,8 @@ private AddressSetView findLocations(Program program, AddressSetView set, TaskMo
return functionEntries;
}

private boolean hasImportedSignatureWithinNamespace(Function function) {
return function.getSignatureSource() == SourceType.IMPORTED &&
private boolean hasNonDefaultSignatureWithinNamespace(Function function) {
return function.getSignatureSource() != SourceType.DEFAULT &&
function.getParentNamespace().getID() != Namespace.GLOBAL_NAMESPACE_ID;
}

Expand Down

0 comments on commit b3c9eec

Please sign in to comment.