mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[IR] Use llvm::is_contained (NFC)
This commit is contained in:
parent
e7c9a10ed2
commit
a7ca5fc6a4
@ -641,10 +641,7 @@ void MDNode::resolveCycles() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool hasSelfReference(MDNode *N) {
|
static bool hasSelfReference(MDNode *N) {
|
||||||
for (Metadata *MD : N->operands())
|
return llvm::is_contained(N->operands(), N);
|
||||||
if (MD == N)
|
|
||||||
return true;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MDNode *MDNode::replaceWithPermanentImpl() {
|
MDNode *MDNode::replaceWithPermanentImpl() {
|
||||||
|
@ -55,11 +55,7 @@ bool llvm::shouldPrintAfterSomePass() {
|
|||||||
|
|
||||||
static bool shouldPrintBeforeOrAfterPass(StringRef PassID,
|
static bool shouldPrintBeforeOrAfterPass(StringRef PassID,
|
||||||
ArrayRef<std::string> PassesToPrint) {
|
ArrayRef<std::string> PassesToPrint) {
|
||||||
for (auto &Pass : PassesToPrint) {
|
return llvm::is_contained(PassesToPrint, PassID);
|
||||||
if (Pass == PassID)
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool llvm::shouldPrintBeforeAll() { return PrintBeforeAll; }
|
bool llvm::shouldPrintBeforeAll() { return PrintBeforeAll; }
|
||||||
|
Loading…
Reference in New Issue
Block a user