diff options
Diffstat (limited to 'src/llvm.cpp')
-rw-r--r-- | src/llvm.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/llvm.cpp b/src/llvm.cpp index 6ef25bb..f6874d7 100644 --- a/src/llvm.cpp +++ b/src/llvm.cpp @@ -67,7 +67,6 @@ struct LLVMEngine : public Engine { CVal compileGlobalSet(CEnv& cenv, const string& s, CVal v, const AST* t); CVal compileGlobalGet(CEnv& cenv, const string& s, CVal v); CVal compileIf(CEnv& cenv, const AST* cond, const AST* then, const AST* aelse); - CVal compileIsA(CEnv& cenv, CVal rtti, CVal tag); CVal compileLiteral(CEnv& cenv, const AST* lit); CVal compilePrimitive(CEnv& cenv, const ATuple* prim); CVal compileString(CEnv& cenv, const char* str); @@ -365,15 +364,6 @@ LLVMEngine::compileIf(CEnv& cenv, const AST* cond, const AST* then, const AST* a } CVal -LLVMEngine::compileIsA(CEnv& cenv, CVal rtti, CVal tag) -{ - LLVMEngine* engine = reinterpret_cast<LLVMEngine*>(cenv.engine()); - Value* typeV = llVal(tag); - - return engine->builder.CreateICmp(CmpInst::ICMP_EQ, llVal(rtti), typeV); -} - -CVal LLVMEngine::compilePrimitive(CEnv& cenv, const ATuple* prim) { ATuple::const_iterator i = prim->iter_at(1); |