From f9a0c7e9687bc3e113f4c8f44861533c9ca48b3a Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 13 Oct 2026 03:23:52 +0000 Subject: feat: compile source files with configurable IR output Co-Authored-By: Claude Fable 5.1 --- lib/CodeGen/CodeGen.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CodeGen.cc') diff --git a/lib/CodeGen/CodeGen.cc b/lib/CodeGen/CodeGen.cc index fbf807b..903d8ef 100644 --- a/lib/CodeGen/CodeGen.cc +++ b/lib/CodeGen/CodeGen.cc @@ -539,8 +539,8 @@ void CodeGen::compile(const std::vector> &Statements) { } } -void CodeGen::print() { - TheModule->print(errs(), nullptr); +void CodeGen::print(raw_ostream &Output) { + TheModule->print(Output, nullptr); } Value *CodeGen::emitExpr(ExprAST *Expr) { -- cgit v1.3.1-4-g156e