summaryrefslogtreecommitdiff
path: root/yjit/src/backend
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2022-10-19 14:03:07 -0400
committerGitHub <noreply@github.com>2022-10-19 14:03:07 -0400
commit5ca23caa2057fc4760fbefab6087371b11c4bc6c (patch)
treeb0456a0c659205843eb6d49693e7e823fc75f307 /yjit/src/backend
parentbc939d293768acf9a21568ebe738b8fe5981038f (diff)
downloadruby-5ca23caa2057fc4760fbefab6087371b11c4bc6c.tar.gz
YJIT: fold the "asm_comments" feature into "disasm" (#6591)
Previously, enabling only "disasm" didn't actually build. Since these two features are closely related and we don't really use one without the other, let's simplify and merge the two features together.
Diffstat (limited to 'yjit/src/backend')
-rw-r--r--yjit/src/backend/arm64/mod.rs2
-rw-r--r--yjit/src/backend/x86_64/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/yjit/src/backend/arm64/mod.rs b/yjit/src/backend/arm64/mod.rs
index 5df072ed38..7aeb1435d2 100644
--- a/yjit/src/backend/arm64/mod.rs
+++ b/yjit/src/backend/arm64/mod.rs
@@ -724,7 +724,7 @@ impl Assembler
match insn {
Insn::Comment(text) => {
- if cfg!(feature = "asm_comments") {
+ if cfg!(feature = "disasm") {
cb.add_comment(text);
}
},
diff --git a/yjit/src/backend/x86_64/mod.rs b/yjit/src/backend/x86_64/mod.rs
index c8aa1a0ed5..ac5ac0fff4 100644
--- a/yjit/src/backend/x86_64/mod.rs
+++ b/yjit/src/backend/x86_64/mod.rs
@@ -388,7 +388,7 @@ impl Assembler
match insn {
Insn::Comment(text) => {
- if cfg!(feature = "asm_comments") {
+ if cfg!(feature = "disasm") {
cb.add_comment(text);
}
},