summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-10-19 06:12:02 +0000
committerFangrui Song <maskray@google.com>2018-10-19 06:12:02 +0000
commit2e83b2e9ee1afcfa9265df8fee60984d7bb55965 (patch)
tree5b9aa53a3014d1252779041abd559756bb6ed9e6 /llvm/utils/TableGen
parent903542009126e107299aa11d3ecf727010d44bc0 (diff)
downloadbcm5719-llvm-2e83b2e9ee1afcfa9265df8fee60984d7bb55965.tar.gz
bcm5719-llvm-2e83b2e9ee1afcfa9265df8fee60984d7bb55965.zip
Use llvm::{all,any,none}_of instead std::{all,any,none}_of. NFC
llvm-svn: 344774
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/AsmMatcherEmitter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
index e808661b7a5..5b4229e6468 100644
--- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp
+++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
@@ -2415,10 +2415,9 @@ static void emitOperandMatchErrorDiagStrings(AsmMatcherInfo &Info, raw_ostream &
static void emitRegisterMatchErrorFunc(AsmMatcherInfo &Info, raw_ostream &OS) {
OS << "static unsigned getDiagKindFromRegisterClass(MatchClassKind "
"RegisterClass) {\n";
- if (std::none_of(Info.Classes.begin(), Info.Classes.end(),
- [](const ClassInfo &CI) {
- return CI.isRegisterClass() && !CI.DiagnosticType.empty();
- })) {
+ if (none_of(Info.Classes, [](const ClassInfo &CI) {
+ return CI.isRegisterClass() && !CI.DiagnosticType.empty();
+ })) {
OS << " return MCTargetAsmParser::Match_InvalidOperand;\n";
} else {
OS << " switch (RegisterClass) {\n";
OpenPOWER on IntegriCloud