aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cps/ArrayHandler.h1
-rw-r--r--include/cps/CodeGen.h1
-rw-r--r--include/cps/StringHandler.h4
3 files changed, 4 insertions, 2 deletions
diff --git a/include/cps/ArrayHandler.h b/include/cps/ArrayHandler.h
index 6f563b7..e8a57fb 100644
--- a/include/cps/ArrayHandler.h
+++ b/include/cps/ArrayHandler.h
@@ -36,7 +36,6 @@ class ArrayHandler {
RuntimeCheck &RuntimeChecker;
llvm::FunctionCallee MallocFunc;
- llvm::FunctionCallee FreeFunc;
llvm::Value *computeFlatIndex(const std::string &Name, const std::vector<llvm::Value*> &Indices);
llvm::Value *getArrayBasePointer(const std::string &Name);
diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h
index b1d3831..def7395 100644
--- a/include/cps/CodeGen.h
+++ b/include/cps/CodeGen.h
@@ -45,6 +45,7 @@ class CodeGen {
llvm::FunctionCallee PrintfFunc;
llvm::FunctionCallee ScanfFunc;
+ llvm::FunctionCallee MallocFunc;
llvm::Value *PrintfFormatStr; // %lld\n
llvm::Value *PrintfFloatFormatStr; // %f\n
diff --git a/include/cps/StringHandler.h b/include/cps/StringHandler.h
index a31fd2b..7226b85 100644
--- a/include/cps/StringHandler.h
+++ b/include/cps/StringHandler.h
@@ -14,9 +14,10 @@ class StringHandler {
std::map<std::string, llvm::Value*> &NamedValues;
llvm::FunctionCallee MallocFunc;
- llvm::FunctionCallee FreeFunc;
llvm::FunctionCallee StrLenFunc;
llvm::FunctionCallee MemCpyFunc;
+ llvm::FunctionCallee StrCpyFunc;
+ llvm::FunctionCallee StrCatFunc;
llvm::FunctionCallee ToUpperFunc;
llvm::FunctionCallee ToLowerFunc;
@@ -29,6 +30,7 @@ public:
llvm::Value *createLiteral(const std::string &Val);
llvm::Value *emitLength(llvm::Value *Str);
+ llvm::Value *emitConcat(llvm::Value *LHS, llvm::Value *RHS);
llvm::Value *emitMid(llvm::Value *Str, llvm::Value *Start, llvm::Value *Len);
llvm::Value *emitRight(llvm::Value *Str, llvm::Value *Len);
llvm::Value *emitLeft(llvm::Value *Str, llvm::Value *Len);