aboutsummaryrefslogtreecommitdiff
path: root/include/cps/CodeGen.h
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-17 09:15:18 +0000
committer_ov4 <ov4@ov4.org>2026-10-17 09:15:18 +0000
commit39e50838bd12057d9305575f50c63990984df01a (patch)
tree6ff2b45ed79aff00582c62942c2a283d92329b4f /include/cps/CodeGen.h
parente1f41ed9fafaf7eb4f2da6878a3fabcf2f7c021e (diff)
feat(codegen): GLOBAL variables as LLVM globals
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'include/cps/CodeGen.h')
-rw-r--r--include/cps/CodeGen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h
index 6e0fab1..d624ca6 100644
--- a/include/cps/CodeGen.h
+++ b/include/cps/CodeGen.h
@@ -41,6 +41,7 @@ class CodeGen {
bool isVisible(size_t Owner) const;
void selectUnit(size_t Unit);
void importSymbols();
+ void runGlobalPrePass(const SourceUnit &Unit, int Phase);
IdentifierMap<SymbolInfo> Symbols;
IdentifierMap<IdentifierMap<FunctionDefAST*>> ClassMethods;
std::string CurrentClass;