From 39661855c0816ac248be437704c76f58359cb5f0 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 06:52:23 +0000 Subject: feat(classes): construct declared objects and nested fields and arrays Co-Authored-By: Claude Opus 5.5 --- include/cps/CodeGen.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/cps/CodeGen.h') diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h index 593cde0..1813d9d 100644 --- a/include/cps/CodeGen.h +++ b/include/cps/CodeGen.h @@ -36,6 +36,13 @@ class CodeGen { std::string CurrentClass; const PrototypeAST *findMethod(const std::string &Class, const std::string &Name) const; llvm::Value *emitMemberCall(MemberCallExprAST *Call); + llvm::Value *emitMethodCall(const std::string &Class, llvm::Value *Receiver, + const std::string &Name, + const std::vector> &Args, int Line); + bool typeNeedsConstruction(const std::string &TypeName) const; + bool emitConstruct(const std::string &TypeName, llvm::Value *Addr, + const std::vector> &Args, int Line); + bool emitDefaultConstruct(const std::string &TypeName, llvm::Value *Addr, int Line); struct ConstantScope { unsigned ID; IdentifierMap> Saved; -- cgit v1.3.1-4-g156e