aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CharHandler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/CharHandler.cc')
-rw-r--r--lib/CodeGen/CharHandler.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/CodeGen/CharHandler.cc b/lib/CodeGen/CharHandler.cc
deleted file mode 100644
index 5e9b502..0000000
--- a/lib/CodeGen/CharHandler.cc
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "cps/CharHandler.h"
-
-using namespace llvm;
-using namespace cps;
-
-CharHandler::CharHandler(LLVMContext &Ctx, IRBuilder<> &B, llvm::Module &M)
- : Context(Ctx), Builder(B), Module(M) {}
-
-Value *CharHandler::emitAsc(Value *CharVal) {
- return Builder.CreateZExt(CharVal, Type::getInt32Ty(Context), "asc_val");
-}
-
-Value *CharHandler::emitChr(Value *IntVal) {
- return Builder.CreateTrunc(IntVal, Type::getInt8Ty(Context), "chr_val");
-}