Skip to content

Commit 8220b91

Browse files
tekknolagik0kubun
authored andcommitted
Fix s/Raw/Debug/g
1 parent 49b8368 commit 8220b91

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

zjit/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ fn iseq_gen_entry_point(iseq: IseqPtr) -> *const u8 {
9292
match get_option!(dump_hir_opt) {
9393
Some(DumpHIR::WithoutSnapshot) => println!("HIR:\n{}", FunctionPrinter::without_snapshot(&ssa)),
9494
Some(DumpHIR::All) => println!("HIR:\n{}", FunctionPrinter::with_snapshot(&ssa)),
95-
Some(DumpHIR::Raw) => println!("HIR:\n{:#?}", &ssa),
95+
Some(DumpHIR::Debug) => println!("HIR:\n{:#?}", &ssa),
9696
None => {},
9797
}
9898

zjit/src/hir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ pub fn iseq_to_hir(iseq: *const rb_iseq_t) -> Result<Function, ParseError> {
14481448
match get_option!(dump_hir) {
14491449
Some(DumpHIR::WithoutSnapshot) => println!("HIR:\n{}", FunctionPrinter::without_snapshot(&fun)),
14501450
Some(DumpHIR::All) => println!("HIR:\n{}", FunctionPrinter::with_snapshot(&fun)),
1451-
Some(DumpHIR::Raw) => println!("HIR:\n{:#?}", &fun),
1451+
Some(DumpHIR::Debug) => println!("HIR:\n{:#?}", &fun),
14521452
None => {},
14531453
}
14541454

zjit/src/options.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub enum DumpHIR {
2929
// Dump High-level IR with Snapshot
3030
All,
3131
// Pretty-print bare High-level IR structs
32-
Raw,
32+
Debug,
3333
}
3434

3535
/// Macro to get an option value by name
@@ -99,11 +99,11 @@ fn parse_option(options: &mut Options, str_ptr: *const std::os::raw::c_char) ->
9999

100100
("dump-hir", "") => options.dump_hir = Some(DumpHIR::WithoutSnapshot),
101101
("dump-hir", "all") => options.dump_hir = Some(DumpHIR::All),
102-
("dump-hir", "raw") => options.dump_hir = Some(DumpHIR::Raw),
102+
("dump-hir", "debug") => options.dump_hir = Some(DumpHIR::Debug),
103103

104104
("dump-hir-opt", "") => options.dump_hir_opt = Some(DumpHIR::WithoutSnapshot),
105105
("dump-hir-opt", "all") => options.dump_hir_opt = Some(DumpHIR::All),
106-
("dump-hir-opt", "raw") => options.dump_hir_opt = Some(DumpHIR::Raw),
106+
("dump-hir-opt", "debug") => options.dump_hir_opt = Some(DumpHIR::Debug),
107107

108108
("dump-disasm", "") => options.dump_disasm = true,
109109

0 commit comments

Comments
 (0)