Skip to content

Commit

Permalink
fix: - in Operand Group Name
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Nov 3, 2024
1 parent 44ecb08 commit 34ba748
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llvm/utils/TableGen/PrinterCapstone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -779,11 +779,13 @@ static void patchTemplateArgs(const std::string &TargetName,
while ((Args.find("true") != std::string::npos) ||
(Args.find("false") != std::string::npos) ||
(Args.find(",") != std::string::npos) ||
(Args.find("'") != std::string::npos)) {
(Args.find("'") != std::string::npos) ||
(Args.find("-") != std::string::npos)) {
Args = Regex("true").sub("1", Args);
Args = Regex("false").sub("0", Args);
Args = Regex(" *, *").sub("_", Args);
Args = Regex("'").sub("", Args);
Args = Regex("-").sub("minus", Args);
}
Code = DecName + "_" + Args + Rest;
E = Code.find(">");
Expand Down

0 comments on commit 34ba748

Please sign in to comment.