aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/AsmMatcherEmitter.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2023-12-25 13:49:57 +0000
committerDimitry Andric <dim@FreeBSD.org>2023-12-25 13:49:57 +0000
commit99aabd70801bd4bc72c4942747f6d62c675112f5 (patch)
tree02bf056e9098f5ecddc7f18a99db9c79f4404b02 /llvm/utils/TableGen/AsmMatcherEmitter.cpp
parent312c0ed19cc5276a17bacf2120097bec4515b0f1 (diff)
downloadsrc-99aabd70801bd4bc72c4942747f6d62c675112f5.tar.gz
src-99aabd70801bd4bc72c4942747f6d62c675112f5.zip
Diffstat (limited to 'llvm/utils/TableGen/AsmMatcherEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/AsmMatcherEmitter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
index f774f0c1018b..73724e662f9e 100644
--- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp
+++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
@@ -985,7 +985,7 @@ void MatchableInfo::tokenizeAsmString(const AsmMatcherInfo &Info,
bool IsIsolatedToken = true;
for (size_t i = 0, e = String.size(); i != e; ++i) {
char Char = String[i];
- if (Variant.BreakCharacters.find(Char) != std::string::npos) {
+ if (Variant.BreakCharacters.contains(Char)) {
if (InTok) {
addAsmOperand(String.slice(Prev, i), false);
Prev = i;
@@ -994,7 +994,7 @@ void MatchableInfo::tokenizeAsmString(const AsmMatcherInfo &Info,
InTok = true;
continue;
}
- if (Variant.TokenizingCharacters.find(Char) != std::string::npos) {
+ if (Variant.TokenizingCharacters.contains(Char)) {
if (InTok) {
addAsmOperand(String.slice(Prev, i), IsIsolatedToken);
InTok = false;
@@ -1005,7 +1005,7 @@ void MatchableInfo::tokenizeAsmString(const AsmMatcherInfo &Info,
IsIsolatedToken = true;
continue;
}
- if (Variant.SeparatorCharacters.find(Char) != std::string::npos) {
+ if (Variant.SeparatorCharacters.contains(Char)) {
if (InTok) {
addAsmOperand(String.slice(Prev, i), IsIsolatedToken);
InTok = false;
@@ -3317,7 +3317,7 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
OS << " unsigned MCK);\n\n";
}
- OS << "#endif // GET_ASSEMBLER_HEADER_INFO\n\n";
+ OS << "#endif // GET_ASSEMBLER_HEADER\n\n";
// Emit the operand match diagnostic enum names.
OS << "\n#ifdef GET_OPERAND_DIAGNOSTIC_TYPES\n";