diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/cps/ArrayHandler.h | 2 | ||||
| -rw-r--r-- | include/cps/CodeGen.h | 4 | ||||
| -rw-r--r-- | include/cps/FunctionGen.h | 2 |
3 files changed, 3 insertions, 5 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, diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h index 6477406..73068bf 100644 --- a/include/cps/CodeGen.h +++ b/include/cps/CodeGen.h @@ -24,7 +24,6 @@ class FileHandler; class MemoryHandler; class ExceptionHandler; class CastExprAST; -class NewExprAST; class TemplateDeclAST; class ClassTypeDeclAST; @@ -97,12 +96,11 @@ class CodeGen { llvm::AllocaInst *Alive; llvm::AllocaInst *Count; // Non-null for an array; Addr then holds its buffer pointer. int Line; - bool IsCopy; bool Temporary = false; }; std::vector<StackObject> StackObjects; size_t registerStackObject(llvm::Value *Addr, const std::string &TypeName, int Line, - bool IsArray = false, bool IsCopy = false); + bool IsArray = false); void activateStackObject(size_t Index, llvm::Value *Count = nullptr); void emitStackObjectCleanup(const StackObject &Object); void finishStackObjects(llvm::Function *F); diff --git a/include/cps/FunctionGen.h b/include/cps/FunctionGen.h index a176e84..7bf7eca 100644 --- a/include/cps/FunctionGen.h +++ b/include/cps/FunctionGen.h @@ -120,7 +120,7 @@ public: llvm::Value *emitCall(const std::string &Callee, const std::vector<llvm::Value*> &Args); llvm::Value *emitCall(const FuncSig &Sig, const std::vector<llvm::Value*> &Args); - void emitReturn(ReturnStmtAST *Ret, llvm::Value *RetVal); + void emitReturn(llvm::Value *RetVal); }; } |
