mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
Replace two manual loops with calls to CallSite::hasArguments (no functional changes).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51947 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,9 +26,7 @@ using namespace llvm;
|
||||
/// takes the address of the function.
|
||||
static bool isOnlyADirectCall(Function *F, CallSite CS) {
|
||||
if (!CS.getInstruction()) return false;
|
||||
for (CallSite::arg_iterator I = CS.arg_begin(), E = CS.arg_end(); I != E; ++I)
|
||||
if (*I == F) return false;
|
||||
return true;
|
||||
return !CS.hasArgument(F);
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
Reference in New Issue
Block a user