Compile HLL to assembly text (mirrors `fsc hll-to-asm`).
(src: &str)
| 59 | |
| 60 | // Compile HLL to assembly text (mirrors `fsc hll-to-asm`). |
| 61 | fn hll_to_asm_text(src: &str) -> String { |
| 62 | let pipeline = make_pipeline(TargetMode::Hosted, USER_PREFIX); |
| 63 | let result = pipeline.compile(src).expect("compile failed"); |
| 64 | pipeline.compile_ir_to_assembly(&result.ir_program) |
| 65 | } |
| 66 | |
| 67 | // --- hll-to-ir tests --- |
| 68 |