2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 10:27:42 +00:00

Additions to test

This commit is contained in:
Jack Andersen
2015-11-15 18:30:06 -10:00
parent 77c5f8c089
commit 6ae4f6ed11
14 changed files with 698 additions and 137 deletions

View File

@@ -706,12 +706,13 @@ void Lexer::RecursiveFuncCompile(IR& ir, const Lexer::OperationNode* funcNode, I
ir.m_regCount = tgt;
}
IR Lexer::compileIR() const
IR Lexer::compileIR(atUint64 hash) const
{
if (!m_root)
m_diag.reportCompileErr(SourceLocation(), "unable to compile HECL-IR for invalid source");
IR ir;
ir.m_hash = hash;
RecursiveFuncCompile(ir, m_root, 0);
return ir;
}