[llvm-pdbutil] Use llvm::is_contained (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 26 Dec 2020 20:06:24 +0000 (12:06 -0800)
committerKazu Hirata <kazu@google.com>
Sat, 26 Dec 2020 20:06:24 +0000 (12:06 -0800)
llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp

index 00092e71c6b49d1d7ec18f05ab757ce967fd10ae..19f4880ab5eb716045d96dc928e43558a14d3c02 100644 (file)
@@ -892,9 +892,9 @@ static void dumpBytes(StringRef Path) {
 bool opts::pretty::shouldDumpSymLevel(SymLevel Search) {
   if (SymTypes.empty())
     return true;
-  if (llvm::find(SymTypes, Search) != SymTypes.end())
+  if (llvm::is_contained(SymTypes, Search))
     return true;
-  if (llvm::find(SymTypes, SymLevel::All) != SymTypes.end())
+  if (llvm::is_contained(SymTypes, SymLevel::All))
     return true;
   return false;
 }