Changed how scopes work

Also added logging and GenIR functions for VariableDeclaration
This commit is contained in:
Pasha Bibko
2025-04-27 21:48:16 +01:00
parent a64aa28432
commit 88ce75ceb1
8 changed files with 41 additions and 67 deletions

View File

@@ -55,6 +55,7 @@ namespace LX
// Loops over the functions to generate their LLVM IR //
for (auto& func : ast.functions)
{
LLVM.scope = &func.scope; // Sets the current scope for the builder
GenerateFunctionIR(func, LLVM);
}