Removed how variables were handled

This commit is contained in:
Pasha Bibko
2025-05-10 13:39:25 +01:00
parent 050eeb5a53
commit 9e9606681f
8 changed files with 5 additions and 88 deletions

View File

@@ -40,7 +40,7 @@ namespace LX
// Adds the function's parameters to the scope //
for (std::string& param : funcAST.params)
{
LLVM.scope->CreateVar(param, LLVM);
//LLVM.scope->CreateVar(param, LLVM);
}
// Generates the IR within the function by looping over the nodes //
@@ -73,7 +73,6 @@ 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);
}