Compile HLL to IR text (mirrors `fsc hll-to-ir`).
(src: &str)
| 52 | |
| 53 | // Compile HLL to IR text (mirrors `fsc hll-to-ir`). |
| 54 | fn hll_to_ir_text(src: &str) -> String { |
| 55 | let pipeline = make_pipeline(TargetMode::Hosted, USER_PREFIX); |
| 56 | let result = pipeline.compile(src).expect("compile failed"); |
| 57 | result.ir_program.to_string() |
| 58 | } |
| 59 | |
| 60 | // Compile HLL to assembly text (mirrors `fsc hll-to-asm`). |
| 61 | fn hll_to_asm_text(src: &str) -> String { |