diff options
Diffstat (limited to 'src/c.cpp')
-rw-r--r-- | src/c.cpp | 27 |
1 files changed, 7 insertions, 20 deletions
@@ -51,9 +51,7 @@ struct CEngine : public Engine { CVal compileDot(CEnv& cenv, CVal tup, int32_t index); CVal compileGlobalSet(CEnv& cenv, const string& s, CVal v, const AType* t); CVal compileGlobalGet(CEnv& cenv, const string& s, CVal v); - IfState compileIfStart(CEnv& cenv); - void compileIfBranch(CEnv& cenv, IfState state, CVal condV, const AST* then); - CVal compileIfEnd(CEnv& cenv, IfState state, CVal elseV, const AType* type); + CVal compileIf(CEnv& cenv, const AST* cond, const AST* then, const AST* aelse); CVal compileIsA(CEnv& cenv, CVal rtti, const ASymbol* tag); CVal compileLiteral(CEnv& cenv, const AST* lit); CVal compilePrimitive(CEnv& cenv, const ATuple* prim); @@ -228,6 +226,12 @@ CEngine::eraseFn(CEnv& cenv, CFunc f) cenv.err << "C backend does not support JIT (eraseFn)" << endl; } +CVal +CEngine::compileIf(CEnv& cenv, const AST* cond, const AST* then, const AST* aelse) +{ + return NULL; +} + #if 0 CVal CEngine::compileIf(CEnv& cenv, const ATuple* aif) @@ -262,23 +266,6 @@ CEngine::compileIf(CEnv& cenv, const ATuple* aif) } #endif -IfState -CEngine::compileIfStart(CEnv& cenv) -{ - return NULL; -} - -void -CEngine::compileIfBranch(CEnv& cenv, IfState s, CVal condV, const AST* then) -{ -} - -CVal -CEngine::compileIfEnd(CEnv& cenv, IfState s, CVal elseV, const AType* type) -{ - return NULL; -} - CVal CEngine::compileIsA(CEnv& cenv, CVal rtti, const ASymbol* tag) { |