projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62beac7
)
[llvm-pdbutil] Use llvm::is_contained (NFC)
author
Kazu Hirata
<kazu@google.com>
Sat, 26 Dec 2020 20:06:24 +0000
(12:06 -0800)
committer
Kazu Hirata
<kazu@google.com>
Sat, 26 Dec 2020 20:06:24 +0000
(12:06 -0800)
llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
patch
|
blob
|
history
diff --git
a/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
b/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
index 00092e71c6b49d1d7ec18f05ab757ce967fd10ae..19f4880ab5eb716045d96dc928e43558a14d3c02 100644
(file)
--- 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;
}