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:
4ba9d9c
)
[TableGen] Use llvm::erase_value (NFC)
author
Kazu Hirata
<kazu@google.com>
Sun, 24 Oct 2021 03:41:48 +0000
(20:41 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sun, 24 Oct 2021 03:41:48 +0000
(20:41 -0700)
mlir/lib/TableGen/Dialect.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/TableGen/Dialect.cpp
b/mlir/lib/TableGen/Dialect.cpp
index
7b5e89a
..
ed775d2
100644
(file)
--- a/
mlir/lib/TableGen/Dialect.cpp
+++ b/
mlir/lib/TableGen/Dialect.cpp
@@
-32,7
+32,7
@@
StringRef Dialect::getCppNamespace() const {
std::string Dialect::getCppClassName() const {
// Simply use the name and remove any '_' tokens.
std::string cppName = def->getName().str();
- llvm::erase_
if(cppName, [](char c) { return c == '_'; }
);
+ llvm::erase_
value(cppName, '_'
);
return cppName;
}