Skip to content

Commit 8b806d4

Browse files
b1llowRot127
authored andcommitted
fix: - in Operand Group Name
1 parent 8bdb496 commit 8b806d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/utils/TableGen/PrinterCapstone.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,11 +779,13 @@ static void patchTemplateArgs(const std::string &TargetName,
779779
while ((Args.find("true") != std::string::npos) ||
780780
(Args.find("false") != std::string::npos) ||
781781
(Args.find(",") != std::string::npos) ||
782-
(Args.find("'") != std::string::npos)) {
782+
(Args.find("'") != std::string::npos) ||
783+
(Args.find("-") != std::string::npos)) {
783784
Args = Regex("true").sub("1", Args);
784785
Args = Regex("false").sub("0", Args);
785786
Args = Regex(" *, *").sub("_", Args);
786787
Args = Regex("'").sub("", Args);
788+
Args = Regex("-").sub("minus", Args);
787789
}
788790
Code = DecName + "_" + Args + Rest;
789791
E = Code.find(">");

0 commit comments

Comments
 (0)