diff options
| author | _ov4 <hausemasterstream@gmail.com> | 2026-02-02 10:08:22 +0000 |
|---|---|---|
| committer | _ov4 <hausemasterstream@gmail.com> | 2026-02-02 10:08:22 +0000 |
| commit | 1b524f75401a6318fbaf3fee0bfcbe59348f2e51 (patch) | |
| tree | 2616ebfc5e03f74f5cf33aab632c90da96d4fb44 /include/cps/CodeGen.h | |
| parent | 09e128ce98de793d22669255897e4b4816d0e53e (diff) | |
Added STRING
Diffstat (limited to 'include/cps/CodeGen.h')
| -rw-r--r-- | include/cps/CodeGen.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h index df9eef4..cb8cecb 100644 --- a/include/cps/CodeGen.h +++ b/include/cps/CodeGen.h @@ -10,6 +10,7 @@ #include "cps/RealHandler.h" #include "cps/BooleanHandler.h" #include "cps/ArithmeticHandler.h" +#include "cps/StringHandler.h" #include <map> #include <memory> @@ -32,6 +33,7 @@ class CodeGen { std::unique_ptr<RealHandler> RealHelper; std::unique_ptr<BooleanHandler> BoolHandler; std::unique_ptr<ArithmeticHandler> ArithHandler; + std::unique_ptr<StringHandler> StrHandler; llvm::FunctionCallee PrintfFunc; llvm::FunctionCallee ScanfFunc; @@ -42,6 +44,7 @@ class CodeGen { llvm::Value *ScanfFormatStr; // %lld llvm::Value *ScanfFloatFormatStr; // %lf + llvm::Value *ScanfStringFormatStr; // %s llvm::Value *TrueStr; // "TRUE" llvm::Value *FalseStr; // "FALSE" |
