mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 17:26:06 +00:00
[tools] Use llvm::is_contained (NFC)
This commit is contained in:
parent
f8a4cd0f07
commit
a3b9c1533e
@ -377,8 +377,7 @@ Error linkDebugInfoImpl(object::ObjectFile &File, const Options &Options,
|
||||
|
||||
if (Options.AccelTableKind == DwarfUtilAccelKind::None)
|
||||
AccelTableNamesToDelete.push_back(Sec.Name);
|
||||
else if (std::find(AccelTables.begin(), AccelTables.end(),
|
||||
*SrcAccelTableKind) == AccelTables.end())
|
||||
else if (!llvm::is_contained(AccelTables, *SrcAccelTableKind))
|
||||
AccelTableNamesToReplace.push_back(Sec.Name);
|
||||
} else if (!knownByDWARFUtil(Sec.Name)) {
|
||||
assert(!SrcAccelTableKind);
|
||||
|
@ -242,10 +242,8 @@ bool MissingFrameInferrer::inferMissingFrames(
|
||||
|
||||
// Done with the inference if the calle is reachable via a single callsite.
|
||||
// This may not be accurate but it improves the search throughput.
|
||||
for (auto Target : CallEdgesF[From]) {
|
||||
if (Target == ToFRange->Func)
|
||||
return true;
|
||||
}
|
||||
if (llvm::is_contained(CallEdgesF[From], ToFRange->Func))
|
||||
return true;
|
||||
|
||||
// Bail out if callee is not tailcall reachable at all.
|
||||
if (!TailCallTargetFuncs.contains(ToFRange->Func))
|
||||
|
Loading…
x
Reference in New Issue
Block a user