aboutsummaryrefslogtreecommitdiff
path: root/include/cps/CodeGen.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cps/CodeGen.h')
-rw-r--r--include/cps/CodeGen.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h
index 45660b8..0962753 100644
--- a/include/cps/CodeGen.h
+++ b/include/cps/CodeGen.h
@@ -21,7 +21,6 @@ namespace cps {
class ArrayHandler;
class FileHandler;
-class MemoryHandler;
class ExceptionHandler;
class CastExprAST;
class TemplateDeclAST;
@@ -157,7 +156,6 @@ class CodeGen {
std::unique_ptr<ArithmeticHandler> ArithHandler;
std::unique_ptr<FileHandler> Files;
- std::unique_ptr<MemoryHandler> Memory;
llvm::FunctionCallee PrintfFunc;
@@ -208,7 +206,7 @@ class CodeGen {
bool emitLValue(ExprAST *E, LValueInfo &Out);
// Read a value from resolved storage.
llvm::Value *loadFromLValue(const LValueInfo &LV);
- llvm::Value *emitAllocationSize(ExprAST *Expr);
+ llvm::Value *emitMemoryCall(const char *Name, llvm::Value *Argument, int Line);
static bool isLogicalOperand(const TypeInfo *T);
llvm::Value *emitShortCircuit(BinaryExprAST *Bin, const TypeInfo *LT, const TypeInfo *RT);
llvm::Value *emitIntBuiltin(ExprAST *Arg, int Line);