[llvm-branch-commits] [llvm] 9c9bca4 - [llvm-pdbutil] Use llvm::is_contained (NFC)

Kazu Hirata via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Dec 26 12:11:49 PST 2020


Author: Kazu Hirata
Date: 2020-12-26T12:06:24-08:00
New Revision: 9c9bca45f094cf6d46dfdfa9e45693245853d9d9

URL: https://github.com/llvm/llvm-project/commit/9c9bca45f094cf6d46dfdfa9e45693245853d9d9
DIFF: https://github.com/llvm/llvm-project/commit/9c9bca45f094cf6d46dfdfa9e45693245853d9d9.diff

LOG: [llvm-pdbutil] Use llvm::is_contained (NFC)

Added: 
    

Modified: 
    llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp b/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
index 00092e71c6b4..19f4880ab5eb 100644
--- a/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
+++ b/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
@@ -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;
 }


        


More information about the llvm-branch-commits mailing list