aboutsummaryrefslogtreecommitdiff
path: root/include/cps/ArrayHandler.h
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-22 03:26:30 +0000
committer_ov4 <ov4@ov4.org>2026-10-22 03:58:26 +0000
commit8c2a2b8f9b3f495f329b2ca3c2759e076f9554fd (patch)
tree2c86d86d7eb0acba30ec9105f6aa7ac506759ead /include/cps/ArrayHandler.h
parentc062fc71f400df8acc14d06819370229af7e5d54 (diff)
refactor(codegen): remove dead parameters, fields and branches
Drop the never-read StackObject::IsCopy flag and registerStackObject parameter, the unused NewExprAST forward declaration, the unused Ret parameter of FunctionGen::emitReturn and CG parameter of ArrayHandler::loadElement, unused <cstdio> includes, and the coerceValueToType early returns already covered by the exact LLVM type check (builtin kinds always map to double/i64/i1/i8). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'include/cps/ArrayHandler.h')
-rw-r--r--include/cps/ArrayHandler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cps/ArrayHandler.h b/include/cps/ArrayHandler.h
index e678af4..8ba631f 100644
--- a/include/cps/ArrayHandler.h
+++ b/include/cps/ArrayHandler.h
@@ -53,7 +53,7 @@ class ArrayHandler {
bool RequireExact,
CodeGen &CG,
std::vector<llvm::Value*> &Out);
- llvm::Value *loadElement(const std::string &Name, llvm::Value *Offset, CodeGen &CG);
+ llvm::Value *loadElement(const std::string &Name, llvm::Value *Offset);
void emitPrintLoop(const std::string &Name,
int CurrentDim,
std::vector<llvm::Value*> CurrentIndices,