From ba88787087b0d979f806e6b58cfbc3886d942968 Mon Sep 17 00:00:00 2001 From: "Noah Gibbs (and/or Benchmark CI)" Date: Wed, 25 May 2022 16:31:38 +0000 Subject: Use bindgen to import CRuby constants for YARV instruction bytecodes --- yjit/bindgen/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'yjit/bindgen/src') diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs index 7049688e1f..26717d018c 100644 --- a/yjit/bindgen/src/main.rs +++ b/yjit/bindgen/src/main.rs @@ -56,6 +56,9 @@ fn main() { // Prune these types since they are system dependant and we don't use them .blocklist_type("__.*") + // Import YARV bytecode instruction constants + .allowlist_type("ruby_vminsn_type") + // From include/ruby/internal/intern/string.h .allowlist_function("rb_utf8_str_new") .allowlist_function("rb_str_append") -- cgit v1.2.3